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';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +24,8 @@ const useDocumentationUrl = () => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
documentationSiteUrl,
|
documentationSiteUrl,
|
||||||
getDocumentationUrl: (pagePath: string) => `${documentationSiteUrl}${pagePath}`,
|
getDocumentationUrl: (pagePath: string) =>
|
||||||
|
appendPath(new URL(documentationSiteUrl), pagePath).toString(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,7 @@ const CustomCssForm = () => {
|
||||||
components={{
|
components={{
|
||||||
a: (
|
a: (
|
||||||
<TextLink
|
<TextLink
|
||||||
// TODO: update the link when Custom CSS docs are ready
|
href={getDocumentationUrl('/docs/recipes/customize-sie/custom-css')}
|
||||||
to={getDocumentationUrl('/docs/recipes/customize-sie/configure-branding')}
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
onClick={closeTipHandler}
|
onClick={closeTipHandler}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue