mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
Update icon
This commit is contained in:
@@ -58,7 +58,7 @@ async function OpenAPIBody(props: BlockProps<DocumentBlockSwagger>) {
|
||||
chevronDown: <Icon icon="chevron-down" />,
|
||||
chevronRight: <Icon icon="chevron-right" />,
|
||||
edit: <Icon icon="edit" />,
|
||||
clear: <Icon icon="x" />,
|
||||
editDone: <Icon icon="check" />,
|
||||
},
|
||||
CodeBlock: PlainCodeBlock,
|
||||
defaultInteractiveOpened: context.mode === 'print',
|
||||
|
||||
@@ -91,7 +91,7 @@ export function ServerURLForm(props: {
|
||||
}
|
||||
aria-label={stateContext?.state?.edit ? 'Clear' : 'Edit'}
|
||||
>
|
||||
{stateContext?.state?.edit ? context.icons.clear : context.icons.edit}
|
||||
{stateContext?.state?.edit ? context.icons.editDone : context.icons.edit}
|
||||
</button>
|
||||
) : null}
|
||||
</fieldset>
|
||||
|
||||
@@ -9,7 +9,7 @@ export interface OpenAPIClientContext {
|
||||
chevronDown: React.ReactNode;
|
||||
chevronRight: React.ReactNode;
|
||||
edit: React.ReactNode;
|
||||
clear: React.ReactNode;
|
||||
editDone: React.ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user