Skip to content

Commit 6b55b00

Browse files
committed
feat(preferences): Adjust summary type to be table by default
1 parent 0c89360 commit 6b55b00

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/app/routes/settings/settings-general.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ const SummaryStyle = () => {
6767
description="Decide how the time summary of past dates is displayed — as table rows or in grid items?"
6868
>
6969
<OrChain role="radiogroup" onKeyDown={styleRadioButtonFocusManager}>
70-
<StyleRadioButton
71-
active={summaryStyle === "grid"}
72-
icon={LayoutGrid}
73-
label="Grid"
74-
onClick={() => preferencesData.actions.setSummaryStye("grid")}
75-
/>
7670
<StyleRadioButton
7771
active={summaryStyle === "table"}
7872
icon={TableProperties}
7973
label="Table"
8074
onClick={() => preferencesData.actions.setSummaryStye("table")}
8175
/>
76+
<StyleRadioButton
77+
active={summaryStyle === "grid"}
78+
icon={LayoutGrid}
79+
label="Grid"
80+
onClick={() => preferencesData.actions.setSummaryStye("grid")}
81+
/>
8282
</OrChain>
8383
</Card>
8484
)

src/data/preferences/preferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Preferences = Resolve<z.infer<typeof preferencesSchema>>
1111

1212
const defaultValue: Preferences = {
1313
locale: "iso",
14-
summaryStyle: "grid",
14+
summaryStyle: "table",
1515
}
1616

1717
export const preferencesData = createSlice({

0 commit comments

Comments
 (0)