mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
fix(console): custom css learn more link (#3560)
This commit is contained in:
parent
fa94ce36b8
commit
f1bbdb8531
2 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
|||
import { appendPath } from '@silverhand/essentials';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
/**
|
||||
|
@ -23,7 +24,8 @@ const useDocumentationUrl = () => {
|
|||
|
||||
return {
|
||||
documentationSiteUrl,
|
||||
getDocumentationUrl: (pagePath: string) => `${documentationSiteUrl}${pagePath}`,
|
||||
getDocumentationUrl: (pagePath: string) =>
|
||||
appendPath(new URL(documentationSiteUrl), pagePath).toString(),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -29,8 +29,7 @@ const CustomCssForm = () => {
|
|||
components={{
|
||||
a: (
|
||||
<TextLink
|
||||
// TODO: update the link when Custom CSS docs are ready
|
||||
to={getDocumentationUrl('/docs/recipes/customize-sie/configure-branding')}
|
||||
href={getDocumentationUrl('/docs/recipes/customize-sie/custom-css')}
|
||||
target="_blank"
|
||||
onClick={closeTipHandler}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue