0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00

fix(console): get-started markdown file paths

This commit is contained in:
Charles Zhao 2022-04-07 18:07:38 +08:00
parent 39833e4a42
commit 86c2d37892
No known key found for this signature in database
GPG key ID: 4858774754C92DF2

View file

@ -21,7 +21,7 @@ export type GetStartedType = 'application' | 'connector';
export const useGetStartedSteps = (type: GetStartedType, subtype?: string) => { export const useGetStartedSteps = (type: GetStartedType, subtype?: string) => {
const subPath = subtype ? `/${subtype}` : ''; const subPath = subtype ? `/${subtype}` : '';
const publicPath = useMemo( const publicPath = useMemo(
() => `/console/get-started/${type}${subPath}/${i18next.language}`, () => `/console/get-started/${type}${subPath}/${i18next.language}`.toLowerCase(),
[type, subPath] [type, subPath]
); );