Skip to content

Commit a05ba5f

Browse files
committed
Fix style of habit
1 parent 5be8b35 commit a05ba5f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/pages/app/components/Habit/index.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77
import ContentContainer from "@app/components/common/ContentContainer"
88
import { useState } from "@hooks"
9+
import Flex from "@pages/components/Flex"
910
import { daysAgo } from "@util/time"
1011
import { defineComponent } from "vue"
1112
import HabitFilter, { type FilterOption } from "./components/HabitFilter"
@@ -22,11 +23,19 @@ const _default = defineComponent(() => {
2223

2324
return () => (
2425
<ContentContainer v-slots={{
25-
filter: () => <HabitFilter defaultValue={filter.value} onChange={val => val && setFilter(val)} />
26-
}}>
27-
<Site />
28-
<Period />
29-
</ContentContainer>
26+
filter: () => (
27+
<HabitFilter
28+
defaultValue={filter.value}
29+
onChange={val => val && setFilter(val)}
30+
/>
31+
),
32+
default: () => (
33+
<Flex direction="column" gap={15}>
34+
<Site />
35+
<Period />
36+
</Flex>
37+
)
38+
}} />
3039
)
3140

3241
})

0 commit comments

Comments
 (0)