mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(console): trim trailing spaces in app guide code sample (#3811)
This commit is contained in:
parent
e57fc80bd4
commit
cf1dd17dd6
1 changed files with 2 additions and 2 deletions
|
@ -94,9 +94,9 @@ function Guide({ app, isCompact, onClose }: Props) {
|
|||
const [, language] = /language-(\w+)/.exec(String(className ?? '')) ?? [];
|
||||
|
||||
return language ? (
|
||||
<CodeEditor isReadonly language={language} value={String(children)} />
|
||||
<CodeEditor isReadonly language={language} value={String(children).trimEnd()} />
|
||||
) : (
|
||||
<code>{String(children)}</code>
|
||||
<code>{String(children).trimEnd()}</code>
|
||||
);
|
||||
},
|
||||
a: ({ children, ...props }) => (
|
||||
|
|
Loading…
Reference in a new issue