Skip to content

Commit 3fab06a

Browse files
authored
feat: 체크박스 기본값 변경 (#333)
1 parent cb29ccb commit 3fab06a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/client/src/shared/components/sidebar/PopupPortal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { createPortal } from 'react-dom';
2-
import { useEffect, useState } from 'react';
31
import { AutoDismissToast, Popup, Toast } from '@pinback/design-system/ui';
42
import type { PopupState } from '@shared/hooks/useCategoryPopups';
53
import { graphemeLength } from '@shared/utils/grapheme';
4+
import { useEffect, useState } from 'react';
5+
import { createPortal } from 'react-dom';
66

77
interface Props {
88
popup: PopupState | null;
@@ -48,7 +48,7 @@ export default function PopupPortal({
4848

4949
setDraft(popup.kind === 'edit' ? (popup.name ?? '') : '');
5050

51-
setShareToJobUsers(popup.kind === 'edit' ? popup.isPublic : false);
51+
setShareToJobUsers(popup.kind === 'edit' ? popup.isPublic : true);
5252
}, [popup]);
5353

5454
if (!popup) return null;

0 commit comments

Comments
 (0)