Skip to content

Commit

Permalink
refactor: add survey add state
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed May 21, 2024
1 parent 8f37c47 commit 3ecd7aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/routes/survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useEvent } from '@/hooks/useEvent';
import { LayoutV2 } from '@/pages/LayoutV2';
import { useCurrentWorkspaceId } from '@/store/user';
import { routeAuthBeforeLoad } from '@/utils/route';
import { cn } from '@/utils/style';
import { Trans, useTranslation } from '@i18next-toolkit/react';
import {
createFileRoute,
Expand Down Expand Up @@ -71,6 +72,7 @@ function PageComponent() {
title={t('Survey')}
actions={
<Button
className={cn(pathname === '/survey/add' && '!bg-muted')}
variant="outline"
Icon={LuPlus}
onClick={handleClickAdd}
Expand Down

0 comments on commit 3ecd7aa

Please sign in to comment.