Skip to content

Commit a7a16a8

Browse files
committed
fix: conditionally render button based on daily review configuration
1 parent 699a68e commit a7a16a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Layout/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const CommonLayout = observer(({ children, header }: { children?: React.R
151151
<div className="flex items-center justify-center gap-2 md:gap-4 w-auto ">
152152
<BarSearchInput isPc={isPc} />
153153
<FilterPop />
154-
<Badge size="sm" className="shrink-0" content={blinkoStore.dailyReviewNoteList.value?.length} color="warning">
154+
{!blinkoStore.config.value?.isCloseDailyReview && <Badge size="sm" className="shrink-0" content={blinkoStore.dailyReviewNoteList.value?.length} color="warning">
155155
<Link href="/review" passHref legacyBehavior>
156156
<Button
157157
as="a"
@@ -163,7 +163,7 @@ export const CommonLayout = observer(({ children, header }: { children?: React.R
163163
<Icon className="cursor-pointer" icon="tabler:bulb" width="24" height="24" />
164164
</Button>
165165
</Link>
166-
</Badge>
166+
</Badge>}
167167
<BlinkoNotification />
168168
</div>
169169
</div>

0 commit comments

Comments
 (0)