diff --git a/gui/src/constant/index.ts b/gui/src/constant/index.ts new file mode 100644 index 0000000..d9ea00a --- /dev/null +++ b/gui/src/constant/index.ts @@ -0,0 +1,4 @@ +/** + * https://stat.ink + */ +export const STAT_INK = 'https://stat.ink' diff --git a/gui/src/pages/Home.tsx b/gui/src/pages/Home.tsx index 8419323..aed01bf 100644 --- a/gui/src/pages/Home.tsx +++ b/gui/src/pages/Home.tsx @@ -1,5 +1,6 @@ import { ErrorContent } from 'components/ErrorContent'; import { Loading } from 'components/Loading'; +import { STAT_INK } from 'constant'; import { usePromise } from 'hooks/usePromise'; import React from 'react' import { useTranslation } from 'react-i18next'; @@ -8,7 +9,7 @@ import { getConfig, getProfile } from 'services/config'; import { composeLoadable } from 'utils/composeLoadable'; export const Home: React.FC = () => { - let { loading, error, retry, result } = composeLoadable({ + let { loading, error, retry } = composeLoadable({ config: usePromise(getConfig), profile: usePromise(() => getProfile(0)), }); @@ -28,8 +29,11 @@ export const Home: React.FC = () => { return <>