diff --git a/spa/src/components/stats/activity-correlations.tsx b/spa/src/components/stats/activity-correlations.tsx
index 7ad6678..ce8099d 100644
--- a/spa/src/components/stats/activity-correlations.tsx
+++ b/spa/src/components/stats/activity-correlations.tsx
@@ -11,9 +11,7 @@ export function ActivityCorrelations() {
const { data: correlations, isLoading } = useAllCorrelations(activeIds)
- const activityMap = new Map(
- (activities ?? []).map((a) => [a.id, a.name])
- )
+ const activityMap = new Map((activities ?? []).map((a) => [a.id, a.name]))
const sorted = [...(correlations ?? [])].sort(
(a, b) => Math.abs(b.correlation!) - Math.abs(a.correlation!)
@@ -54,7 +52,7 @@ function CorrelationBar({ name, value }: { name: string; value: number }) {
}`}
style={{ width: `${pct / 2}%` }}
/>
-
+
{children}
-
-
+
+
)
diff --git a/spa/src/components/ui/breadcrumb.tsx b/spa/src/components/ui/breadcrumb.tsx
index 3d85c18..30dbfc3 100644
--- a/spa/src/components/ui/breadcrumb.tsx
+++ b/spa/src/components/ui/breadcrumb.tsx
@@ -85,9 +85,7 @@ function BreadcrumbSeparator({
className={cn("[&>svg]:size-3.5", className)}
{...props}
>
- {children ?? (
-
- )}
+ {children ?? }
)
}
@@ -107,8 +105,7 @@ function BreadcrumbEllipsis({
)}
{...props}
>
-
+
More
)
diff --git a/spa/src/components/ui/calendar.tsx b/spa/src/components/ui/calendar.tsx
index 0f8950a..c502190 100644
--- a/spa/src/components/ui/calendar.tsx
+++ b/spa/src/components/ui/calendar.tsx
@@ -10,7 +10,11 @@ import {
import { cn } from "@/lib/utils"
import { Button, buttonVariants } from "@/components/ui/button"
-import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from "lucide-react"
+import {
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ ChevronDownIcon,
+} from "lucide-react"
function Calendar({
className,
@@ -153,7 +157,10 @@ function Calendar({
if (orientation === "right") {
return (
-
+
)
}
diff --git a/spa/src/components/ui/checkbox.tsx b/spa/src/components/ui/checkbox.tsx
index 4d2179b..7e6f35b 100644
--- a/spa/src/components/ui/checkbox.tsx
+++ b/spa/src/components/ui/checkbox.tsx
@@ -19,8 +19,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
data-slot="checkbox-indicator"
className="grid place-content-center text-current transition-none [&>svg]:size-3.5"
>
-
+
)
diff --git a/spa/src/components/ui/combobox.tsx b/spa/src/components/ui/combobox.tsx
index be8eea2..5374cdf 100644
--- a/spa/src/components/ui/combobox.tsx
+++ b/spa/src/components/ui/combobox.tsx
@@ -108,7 +108,10 @@ function ComboboxContent({
diff --git a/spa/src/components/ui/command.tsx b/spa/src/components/ui/command.tsx
index 37fb2d9..6cc0532 100644
--- a/spa/src/components/ui/command.tsx
+++ b/spa/src/components/ui/command.tsx
@@ -11,10 +11,7 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog"
-import {
- InputGroup,
- InputGroupAddon,
-} from "@/components/ui/input-group"
+import { InputGroup, InputGroupAddon } from "@/components/ui/input-group"
import { SearchIcon, CheckIcon } from "lucide-react"
function Command({
diff --git a/spa/src/components/ui/context-menu.tsx b/spa/src/components/ui/context-menu.tsx
index 9c0eb98..0083a86 100644
--- a/spa/src/components/ui/context-menu.tsx
+++ b/spa/src/components/ui/context-menu.tsx
@@ -52,7 +52,10 @@ function ContextMenuContent({
>
@@ -174,8 +177,7 @@ function ContextMenuCheckboxItem({
>
-
+
{children}
@@ -214,8 +216,7 @@ function ContextMenuRadioItem({
>
-
+
{children}
diff --git a/spa/src/components/ui/input-otp.tsx b/spa/src/components/ui/input-otp.tsx
index 27c9ed6..44727a0 100644
--- a/spa/src/components/ui/input-otp.tsx
+++ b/spa/src/components/ui/input-otp.tsx
@@ -76,8 +76,7 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
role="separator"
{...props}
>
-
+
)
}
diff --git a/spa/src/components/ui/menubar.tsx b/spa/src/components/ui/menubar.tsx
index 9738fb1..a332bb9 100644
--- a/spa/src/components/ui/menubar.tsx
+++ b/spa/src/components/ui/menubar.tsx
@@ -80,7 +80,10 @@ function MenubarContent({
align={align}
alignOffset={alignOffset}
sideOffset={sideOffset}
- className={cn("min-w-36 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", className )}
+ className={cn(
+ "min-w-36 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
+ className
+ )}
{...props}
/>
)
@@ -128,8 +131,7 @@ function MenubarCheckboxItem({
>
-
+
{children}
@@ -163,8 +165,7 @@ function MenubarRadioItem({
>
-
+
{children}
@@ -254,7 +255,10 @@ function MenubarSubContent({
return (
)
diff --git a/spa/src/components/ui/message-scroller.tsx b/spa/src/components/ui/message-scroller.tsx
index 38c8dba..5eecc1a 100644
--- a/spa/src/components/ui/message-scroller.tsx
+++ b/spa/src/components/ui/message-scroller.tsx
@@ -105,8 +105,7 @@ function MessageScrollerButton({
>
{children ?? (
<>
-
+
{direction === "end" ? "Scroll to end" : "Scroll to start"}
diff --git a/spa/src/components/ui/native-select.tsx b/spa/src/components/ui/native-select.tsx
index 21c4a30..5073291 100644
--- a/spa/src/components/ui/native-select.tsx
+++ b/spa/src/components/ui/native-select.tsx
@@ -27,7 +27,11 @@ function NativeSelect({
className="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
{...props}
/>
-
+
)
}
diff --git a/spa/src/components/ui/navigation-menu.tsx b/spa/src/components/ui/navigation-menu.tsx
index 5958637..94eb5d8 100644
--- a/spa/src/components/ui/navigation-menu.tsx
+++ b/spa/src/components/ui/navigation-menu.tsx
@@ -71,7 +71,10 @@ function NavigationMenuTrigger({
{...props}
>
{children}{" "}
-
+
)
}
diff --git a/spa/src/components/ui/pagination.tsx b/spa/src/components/ui/pagination.tsx
index db376f6..b8097fd 100644
--- a/spa/src/components/ui/pagination.tsx
+++ b/spa/src/components/ui/pagination.tsx
@@ -2,7 +2,11 @@ import * as React from "react"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
-import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
+import {
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ MoreHorizontalIcon,
+} from "lucide-react"
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
return (
@@ -112,8 +116,7 @@ function PaginationEllipsis({
)}
{...props}
>
-
+
More pages
)
diff --git a/spa/src/components/ui/questionnaire.tsx b/spa/src/components/ui/questionnaire.tsx
index 0dbec43..2d9ce8a 100644
--- a/spa/src/components/ui/questionnaire.tsx
+++ b/spa/src/components/ui/questionnaire.tsx
@@ -125,7 +125,10 @@ function QuestionnaireChoice({
data-slot="questionnaire-choice-indicator-dot"
className="hidden size-2 rounded-full bg-primary-foreground group-data-[type=checkbox]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
/>
-
+
@@ -162,8 +165,7 @@ function SelectScrollUpButton({
)}
{...props}
>
-
+
)
}
@@ -181,8 +183,7 @@ function SelectScrollDownButton({
)}
{...props}
>
-
+
)
}
diff --git a/spa/src/components/ui/spinner.tsx b/spa/src/components/ui/spinner.tsx
index 8dca22b..a7669b8 100644
--- a/spa/src/components/ui/spinner.tsx
+++ b/spa/src/components/ui/spinner.tsx
@@ -3,7 +3,13 @@ import { Loader2Icon } from "lucide-react"
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
return (
-
+
)
}
diff --git a/spa/src/routeTree.gen.ts b/spa/src/routeTree.gen.ts
index 8533282..73edc37 100644
--- a/spa/src/routeTree.gen.ts
+++ b/spa/src/routeTree.gen.ts
@@ -8,198 +8,198 @@
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
-import { Route as rootRouteImport } from './routes/__root'
-import { Route as AuthRouteImport } from './routes/_auth'
-import { Route as LoginRouteImport } from './routes/login'
-import { Route as RegisterRouteImport } from './routes/register'
-import { Route as AuthIndexRouteImport } from './routes/_auth/index'
-import { Route as AuthActivitiesRouteImport } from './routes/_auth/activities'
-import { Route as AuthAddRouteImport } from './routes/_auth/add'
-import { Route as AuthCalendarRouteImport } from './routes/_auth/calendar'
-import { Route as AuthDiaryRouteImport } from './routes/_auth/diary'
-import { Route as AuthExportRouteImport } from './routes/_auth/export'
-import { Route as AuthImportRouteImport } from './routes/_auth/import'
-import { Route as AuthRemindersRouteImport } from './routes/_auth/reminders'
-import { Route as AuthSettingsRouteImport } from './routes/_auth/settings'
-import { Route as AuthStatsRouteImport } from './routes/_auth/stats'
-import { Route as AuthEditIdRouteImport } from './routes/_auth/edit.$id'
-import { Route as AuthEntryIdRouteImport } from './routes/_auth/entry.$id'
+import { Route as rootRouteImport } from "./routes/__root"
+import { Route as AuthRouteImport } from "./routes/_auth"
+import { Route as LoginRouteImport } from "./routes/login"
+import { Route as RegisterRouteImport } from "./routes/register"
+import { Route as AuthIndexRouteImport } from "./routes/_auth/index"
+import { Route as AuthActivitiesRouteImport } from "./routes/_auth/activities"
+import { Route as AuthAddRouteImport } from "./routes/_auth/add"
+import { Route as AuthCalendarRouteImport } from "./routes/_auth/calendar"
+import { Route as AuthDiaryRouteImport } from "./routes/_auth/diary"
+import { Route as AuthExportRouteImport } from "./routes/_auth/export"
+import { Route as AuthImportRouteImport } from "./routes/_auth/import"
+import { Route as AuthRemindersRouteImport } from "./routes/_auth/reminders"
+import { Route as AuthSettingsRouteImport } from "./routes/_auth/settings"
+import { Route as AuthStatsRouteImport } from "./routes/_auth/stats"
+import { Route as AuthEditIdRouteImport } from "./routes/_auth/edit.$id"
+import { Route as AuthEntryIdRouteImport } from "./routes/_auth/entry.$id"
const AuthRoute = AuthRouteImport.update({
- id: '/_auth',
+ id: "/_auth",
getParentRoute: () => rootRouteImport,
} as any)
const LoginRoute = LoginRouteImport.update({
- id: '/login',
- path: '/login',
+ id: "/login",
+ path: "/login",
getParentRoute: () => rootRouteImport,
} as any)
const RegisterRoute = RegisterRouteImport.update({
- id: '/register',
- path: '/register',
+ id: "/register",
+ path: "/register",
getParentRoute: () => rootRouteImport,
} as any)
const AuthIndexRoute = AuthIndexRouteImport.update({
- id: '/',
- path: '/',
+ id: "/",
+ path: "/",
getParentRoute: () => AuthRoute,
} as any)
const AuthActivitiesRoute = AuthActivitiesRouteImport.update({
- id: '/activities',
- path: '/activities',
+ id: "/activities",
+ path: "/activities",
getParentRoute: () => AuthRoute,
} as any)
const AuthAddRoute = AuthAddRouteImport.update({
- id: '/add',
- path: '/add',
+ id: "/add",
+ path: "/add",
getParentRoute: () => AuthRoute,
} as any)
const AuthCalendarRoute = AuthCalendarRouteImport.update({
- id: '/calendar',
- path: '/calendar',
+ id: "/calendar",
+ path: "/calendar",
getParentRoute: () => AuthRoute,
} as any)
const AuthDiaryRoute = AuthDiaryRouteImport.update({
- id: '/diary',
- path: '/diary',
+ id: "/diary",
+ path: "/diary",
getParentRoute: () => AuthRoute,
} as any)
const AuthExportRoute = AuthExportRouteImport.update({
- id: '/export',
- path: '/export',
+ id: "/export",
+ path: "/export",
getParentRoute: () => AuthRoute,
} as any)
const AuthImportRoute = AuthImportRouteImport.update({
- id: '/import',
- path: '/import',
+ id: "/import",
+ path: "/import",
getParentRoute: () => AuthRoute,
} as any)
const AuthRemindersRoute = AuthRemindersRouteImport.update({
- id: '/reminders',
- path: '/reminders',
+ id: "/reminders",
+ path: "/reminders",
getParentRoute: () => AuthRoute,
} as any)
const AuthSettingsRoute = AuthSettingsRouteImport.update({
- id: '/settings',
- path: '/settings',
+ id: "/settings",
+ path: "/settings",
getParentRoute: () => AuthRoute,
} as any)
const AuthStatsRoute = AuthStatsRouteImport.update({
- id: '/stats',
- path: '/stats',
+ id: "/stats",
+ path: "/stats",
getParentRoute: () => AuthRoute,
-} as any).lazy(() => import('./routes/_auth/stats.lazy').then((d) => d.Route))
+} as any).lazy(() => import("./routes/_auth/stats.lazy").then((d) => d.Route))
const AuthEditIdRoute = AuthEditIdRouteImport.update({
- id: '/edit/$id',
- path: '/edit/$id',
+ id: "/edit/$id",
+ path: "/edit/$id",
getParentRoute: () => AuthRoute,
} as any)
const AuthEntryIdRoute = AuthEntryIdRouteImport.update({
- id: '/entry/$id',
- path: '/entry/$id',
+ id: "/entry/$id",
+ path: "/entry/$id",
getParentRoute: () => AuthRoute,
} as any)
export interface FileRoutesByFullPath {
- '/': typeof AuthIndexRoute
- '/login': typeof LoginRoute
- '/register': typeof RegisterRoute
- '/activities': typeof AuthActivitiesRoute
- '/add': typeof AuthAddRoute
- '/calendar': typeof AuthCalendarRoute
- '/diary': typeof AuthDiaryRoute
- '/export': typeof AuthExportRoute
- '/import': typeof AuthImportRoute
- '/reminders': typeof AuthRemindersRoute
- '/settings': typeof AuthSettingsRoute
- '/stats': typeof AuthStatsRoute
- '/edit/$id': typeof AuthEditIdRoute
- '/entry/$id': typeof AuthEntryIdRoute
+ "/": typeof AuthIndexRoute
+ "/login": typeof LoginRoute
+ "/register": typeof RegisterRoute
+ "/activities": typeof AuthActivitiesRoute
+ "/add": typeof AuthAddRoute
+ "/calendar": typeof AuthCalendarRoute
+ "/diary": typeof AuthDiaryRoute
+ "/export": typeof AuthExportRoute
+ "/import": typeof AuthImportRoute
+ "/reminders": typeof AuthRemindersRoute
+ "/settings": typeof AuthSettingsRoute
+ "/stats": typeof AuthStatsRoute
+ "/edit/$id": typeof AuthEditIdRoute
+ "/entry/$id": typeof AuthEntryIdRoute
}
export interface FileRoutesByTo {
- '/login': typeof LoginRoute
- '/register': typeof RegisterRoute
- '/activities': typeof AuthActivitiesRoute
- '/add': typeof AuthAddRoute
- '/calendar': typeof AuthCalendarRoute
- '/diary': typeof AuthDiaryRoute
- '/export': typeof AuthExportRoute
- '/import': typeof AuthImportRoute
- '/reminders': typeof AuthRemindersRoute
- '/settings': typeof AuthSettingsRoute
- '/stats': typeof AuthStatsRoute
- '/': typeof AuthIndexRoute
- '/edit/$id': typeof AuthEditIdRoute
- '/entry/$id': typeof AuthEntryIdRoute
+ "/login": typeof LoginRoute
+ "/register": typeof RegisterRoute
+ "/activities": typeof AuthActivitiesRoute
+ "/add": typeof AuthAddRoute
+ "/calendar": typeof AuthCalendarRoute
+ "/diary": typeof AuthDiaryRoute
+ "/export": typeof AuthExportRoute
+ "/import": typeof AuthImportRoute
+ "/reminders": typeof AuthRemindersRoute
+ "/settings": typeof AuthSettingsRoute
+ "/stats": typeof AuthStatsRoute
+ "/": typeof AuthIndexRoute
+ "/edit/$id": typeof AuthEditIdRoute
+ "/entry/$id": typeof AuthEntryIdRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
- '/_auth': typeof AuthRouteWithChildren
- '/login': typeof LoginRoute
- '/register': typeof RegisterRoute
- '/_auth/activities': typeof AuthActivitiesRoute
- '/_auth/add': typeof AuthAddRoute
- '/_auth/calendar': typeof AuthCalendarRoute
- '/_auth/diary': typeof AuthDiaryRoute
- '/_auth/export': typeof AuthExportRoute
- '/_auth/import': typeof AuthImportRoute
- '/_auth/reminders': typeof AuthRemindersRoute
- '/_auth/settings': typeof AuthSettingsRoute
- '/_auth/stats': typeof AuthStatsRoute
- '/_auth/': typeof AuthIndexRoute
- '/_auth/edit/$id': typeof AuthEditIdRoute
- '/_auth/entry/$id': typeof AuthEntryIdRoute
+ "/_auth": typeof AuthRouteWithChildren
+ "/login": typeof LoginRoute
+ "/register": typeof RegisterRoute
+ "/_auth/activities": typeof AuthActivitiesRoute
+ "/_auth/add": typeof AuthAddRoute
+ "/_auth/calendar": typeof AuthCalendarRoute
+ "/_auth/diary": typeof AuthDiaryRoute
+ "/_auth/export": typeof AuthExportRoute
+ "/_auth/import": typeof AuthImportRoute
+ "/_auth/reminders": typeof AuthRemindersRoute
+ "/_auth/settings": typeof AuthSettingsRoute
+ "/_auth/stats": typeof AuthStatsRoute
+ "/_auth/": typeof AuthIndexRoute
+ "/_auth/edit/$id": typeof AuthEditIdRoute
+ "/_auth/entry/$id": typeof AuthEntryIdRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
- | '/'
- | '/login'
- | '/register'
- | '/activities'
- | '/add'
- | '/calendar'
- | '/diary'
- | '/export'
- | '/import'
- | '/reminders'
- | '/settings'
- | '/stats'
- | '/edit/$id'
- | '/entry/$id'
+ | "/"
+ | "/login"
+ | "/register"
+ | "/activities"
+ | "/add"
+ | "/calendar"
+ | "/diary"
+ | "/export"
+ | "/import"
+ | "/reminders"
+ | "/settings"
+ | "/stats"
+ | "/edit/$id"
+ | "/entry/$id"
fileRoutesByTo: FileRoutesByTo
to:
- | '/login'
- | '/register'
- | '/activities'
- | '/add'
- | '/calendar'
- | '/diary'
- | '/export'
- | '/import'
- | '/reminders'
- | '/settings'
- | '/stats'
- | '/'
- | '/edit/$id'
- | '/entry/$id'
+ | "/login"
+ | "/register"
+ | "/activities"
+ | "/add"
+ | "/calendar"
+ | "/diary"
+ | "/export"
+ | "/import"
+ | "/reminders"
+ | "/settings"
+ | "/stats"
+ | "/"
+ | "/edit/$id"
+ | "/entry/$id"
id:
- | '__root__'
- | '/_auth'
- | '/login'
- | '/register'
- | '/_auth/activities'
- | '/_auth/add'
- | '/_auth/calendar'
- | '/_auth/diary'
- | '/_auth/export'
- | '/_auth/import'
- | '/_auth/reminders'
- | '/_auth/settings'
- | '/_auth/stats'
- | '/_auth/'
- | '/_auth/edit/$id'
- | '/_auth/entry/$id'
+ | "__root__"
+ | "/_auth"
+ | "/login"
+ | "/register"
+ | "/_auth/activities"
+ | "/_auth/add"
+ | "/_auth/calendar"
+ | "/_auth/diary"
+ | "/_auth/export"
+ | "/_auth/import"
+ | "/_auth/reminders"
+ | "/_auth/settings"
+ | "/_auth/stats"
+ | "/_auth/"
+ | "/_auth/edit/$id"
+ | "/_auth/entry/$id"
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
@@ -208,110 +208,110 @@ export interface RootRouteChildren {
RegisterRoute: typeof RegisterRoute
}
-declare module '@tanstack/react-router' {
+declare module "@tanstack/react-router" {
interface FileRoutesByPath {
- '/_auth': {
- id: '/_auth'
- path: ''
- fullPath: '/'
+ "/_auth": {
+ id: "/_auth"
+ path: ""
+ fullPath: "/"
preLoaderRoute: typeof AuthRouteImport
parentRoute: typeof rootRouteImport
}
- '/login': {
- id: '/login'
- path: '/login'
- fullPath: '/login'
+ "/login": {
+ id: "/login"
+ path: "/login"
+ fullPath: "/login"
preLoaderRoute: typeof LoginRouteImport
parentRoute: typeof rootRouteImport
}
- '/register': {
- id: '/register'
- path: '/register'
- fullPath: '/register'
+ "/register": {
+ id: "/register"
+ path: "/register"
+ fullPath: "/register"
preLoaderRoute: typeof RegisterRouteImport
parentRoute: typeof rootRouteImport
}
- '/_auth/': {
- id: '/_auth/'
- path: '/'
- fullPath: '/'
+ "/_auth/": {
+ id: "/_auth/"
+ path: "/"
+ fullPath: "/"
preLoaderRoute: typeof AuthIndexRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/activities': {
- id: '/_auth/activities'
- path: '/activities'
- fullPath: '/activities'
+ "/_auth/activities": {
+ id: "/_auth/activities"
+ path: "/activities"
+ fullPath: "/activities"
preLoaderRoute: typeof AuthActivitiesRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/add': {
- id: '/_auth/add'
- path: '/add'
- fullPath: '/add'
+ "/_auth/add": {
+ id: "/_auth/add"
+ path: "/add"
+ fullPath: "/add"
preLoaderRoute: typeof AuthAddRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/calendar': {
- id: '/_auth/calendar'
- path: '/calendar'
- fullPath: '/calendar'
+ "/_auth/calendar": {
+ id: "/_auth/calendar"
+ path: "/calendar"
+ fullPath: "/calendar"
preLoaderRoute: typeof AuthCalendarRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/diary': {
- id: '/_auth/diary'
- path: '/diary'
- fullPath: '/diary'
+ "/_auth/diary": {
+ id: "/_auth/diary"
+ path: "/diary"
+ fullPath: "/diary"
preLoaderRoute: typeof AuthDiaryRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/export': {
- id: '/_auth/export'
- path: '/export'
- fullPath: '/export'
+ "/_auth/export": {
+ id: "/_auth/export"
+ path: "/export"
+ fullPath: "/export"
preLoaderRoute: typeof AuthExportRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/import': {
- id: '/_auth/import'
- path: '/import'
- fullPath: '/import'
+ "/_auth/import": {
+ id: "/_auth/import"
+ path: "/import"
+ fullPath: "/import"
preLoaderRoute: typeof AuthImportRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/reminders': {
- id: '/_auth/reminders'
- path: '/reminders'
- fullPath: '/reminders'
+ "/_auth/reminders": {
+ id: "/_auth/reminders"
+ path: "/reminders"
+ fullPath: "/reminders"
preLoaderRoute: typeof AuthRemindersRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/settings': {
- id: '/_auth/settings'
- path: '/settings'
- fullPath: '/settings'
+ "/_auth/settings": {
+ id: "/_auth/settings"
+ path: "/settings"
+ fullPath: "/settings"
preLoaderRoute: typeof AuthSettingsRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/stats': {
- id: '/_auth/stats'
- path: '/stats'
- fullPath: '/stats'
+ "/_auth/stats": {
+ id: "/_auth/stats"
+ path: "/stats"
+ fullPath: "/stats"
preLoaderRoute: typeof AuthStatsRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/edit/$id': {
- id: '/_auth/edit/$id'
- path: '/edit/$id'
- fullPath: '/edit/$id'
+ "/_auth/edit/$id": {
+ id: "/_auth/edit/$id"
+ path: "/edit/$id"
+ fullPath: "/edit/$id"
preLoaderRoute: typeof AuthEditIdRouteImport
parentRoute: typeof AuthRoute
}
- '/_auth/entry/$id': {
- id: '/_auth/entry/$id'
- path: '/entry/$id'
- fullPath: '/entry/$id'
+ "/_auth/entry/$id": {
+ id: "/_auth/entry/$id"
+ path: "/entry/$id"
+ fullPath: "/entry/$id"
preLoaderRoute: typeof AuthEntryIdRouteImport
parentRoute: typeof AuthRoute
}
diff --git a/spa/src/routes/_auth/reminders.tsx b/spa/src/routes/_auth/reminders.tsx
index 16cfd95..0dbed3c 100644
--- a/spa/src/routes/_auth/reminders.tsx
+++ b/spa/src/routes/_auth/reminders.tsx
@@ -102,7 +102,7 @@ function ReminderCard({ reminder }: { reminder: ReminderResponse }) {
const handleUpdate = (schedule: CreateReminderRequest) => {
updateReminder.mutate(
{ id: reminder.id, body: { schedule } },
- { onSuccess: () => setEditing(false) },
+ { onSuccess: () => setEditing(false) }
)
}
@@ -133,9 +133,7 @@ function ReminderCard({ reminder }: { reminder: ReminderResponse }) {
{DAYS.map(({ key, label }) => {
const time = reminder.schedule[key]
- return (
-
- )
+ return
})}
@@ -151,7 +149,11 @@ function ReminderCard({ reminder }: { reminder: ReminderResponse }) {
+
}
>
@@ -217,18 +219,20 @@ function ReminderForm({
isPending: boolean
}) {
const defaultTime = "20:00"
- const [schedule, setSchedule] = useState>(() => {
- if (initial) return { ...initial }
- return {
- monday: null,
- tuesday: null,
- wednesday: null,
- thursday: null,
- friday: null,
- saturday: null,
- sunday: null,
+ const [schedule, setSchedule] = useState>(
+ () => {
+ if (initial) return { ...initial }
+ return {
+ monday: null,
+ tuesday: null,
+ wednesday: null,
+ thursday: null,
+ friday: null,
+ saturday: null,
+ sunday: null,
+ }
}
- })
+ )
const toggleDay = (day: DayKey) => {
setSchedule((prev) => ({
@@ -262,7 +266,12 @@ function ReminderForm({
Select days
-