Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Jun 7, 2022
1 parent 1893aa1 commit f980054
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/Settings/ProjectList/index.tsx
Expand Up @@ -38,7 +38,7 @@ const ProjectList: React.FC<Props> = ({ teamId }) => {

type Tab = "Working";
const headers = {
Working: t("Working Projects") + "(" + (totalProjects ?? 0) + ")",
Working: t("Total Projects") + "(" + (totalProjects ?? 0) + ")",
};

return (
Expand Down
6 changes: 4 additions & 2 deletions src/i18n/translations/en.yml
Expand Up @@ -3,7 +3,9 @@ Cancel: Cancel
Upload file: Upload file
Delete: Delete
No assets match your search.: No assets match your search.
You haven't uploaded any assets yet. Click the upload button above and select a compatible file from your computer.: You haven't uploaded any assets yet. Click the upload button above and select a compatible file from your computer.
You haven't uploaded any assets yet. Click the upload button above and select a compatible file from your computer.: >-
You haven't uploaded any assets yet. Click the upload button above and select
a compatible file from your computer.
Project settings: Project settings
Datasets: Datasets
Plugins: Plugins
Expand All @@ -13,6 +15,6 @@ Documentation: Documentation
Successfully created workspace!: Successfully created workspace!
Failed to create project.: Failed to create project.
Successfully created project!: Successfully created project!
Working Projects: Working Projects
Total Projects: Total Projects
Project List: Project List
New Project: New Project
6 changes: 3 additions & 3 deletions src/i18n/translations/ja.yml
Expand Up @@ -13,6 +13,6 @@ Documentation: ヘルプ
Successfully created workspace!: ''
Failed to create project.: ''
Successfully created project!: ''
Working Projects: ''
Project List: ''
New Project: ''
Total Projects: 全てのプロジェクト
Project List: プロジェクト一覧
New Project: 新しいプロジェクト
6 changes: 3 additions & 3 deletions src/theme/provider.tsx
Expand Up @@ -11,15 +11,15 @@ import lightTheme from "./lightheme";

const Provider: React.FC = ({ children }) => {
const { isAuthenticated } = useAuth();
const [, setThemaType] = useCurrentTheme();
const [, setThemeType] = useCurrentTheme();
const { data } = useGetThemeQuery({ skip: !isAuthenticated });
const themeType = data?.me?.theme;
// TODO: switch theme by the system settings
const actualThemeType = themeType === ("light" as Theme) ? "light" : "dark";

useEffect(() => {
setThemaType(actualThemeType);
}, [actualThemeType, setThemaType]);
setThemeType(actualThemeType);
}, [actualThemeType, setThemeType]);

const theme = actualThemeType === "light" ? lightTheme : darkTheme;

Expand Down

0 comments on commit f980054

Please sign in to comment.