diff --git a/.typesafe-i18n.json b/.typesafe-i18n.json index bc4dec8d..ed7b92eb 100644 --- a/.typesafe-i18n.json +++ b/.typesafe-i18n.json @@ -1,4 +1,4 @@ { "adapter": "react", - "$schema": "https://unpkg.com/typesafe-i18n@5.18.1/schema/typesafe-i18n.json" + "$schema": "https://unpkg.com/typesafe-i18n@5.18.0/schema/typesafe-i18n.json" } \ No newline at end of file diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index 2be4e23a..c3159bb8 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -94,36 +94,26 @@ export const Dashboard = ({ username, isFrontPage }: DashboardProps) => { {LL.dashboard.statistics()} } - {projectNames.length !== 0 ? ( - <> - setSelectedProjects(selectedProjectNames)} - clearable - placeholder={LL.dashboard.projectsFilter()} - /> - setStatisticsRange(value)} - className={classes.segmentControl} - /> - - ) : ( - - )} + setSelectedProjects(selectedProjectNames)} + clearable + placeholder={projectNames.length === 0 ? LL.dashboard.noProjects() : LL.dashboard.projectsFilter()} + disabled={projectNames.length === 0} + /> + setStatisticsRange(value)} + className={classes.segmentControl} + /> {entries.length !== 0 ? <>