Skip to content

Commit

Permalink
fix: removed visiblity for public view
Browse files Browse the repository at this point in the history
  • Loading branch information
ahong75 committed Oct 25, 2023
1 parent 8bbe210 commit 8973d0d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
25 changes: 13 additions & 12 deletions src/components/StandardCard/StandardCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,19 @@ const StandardCard = ({ card, cards, setCards, ...props }) => {
}
})}
</Flex>
<Button
variant={selected ? "Grey" : "Blue-outlined"}
onClick={reportAddHandler}
flexGrow={0}
flexShrink={0}
whiteSpace="nowrap"
// {...props}
w="35%"
isDisabled={user?.isLoggedIn ? false : true}
>
{!selected ? "Add To Report" : "Del From Report"}
</Button>
{user?.isLoggedIn && (
<Button
variant={selected ? "Grey" : "Blue-outlined"}
onClick={reportAddHandler}
flexGrow={0}
flexShrink={0}
whiteSpace="nowrap"
// {...props}
w="35%"
>
{!selected ? "Add To Report" : "Del From Report"}
</Button>
)}
</HStack>

<CardModalWithForm
Expand Down
26 changes: 14 additions & 12 deletions src/components/StandardCard/StandardCardSmall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,20 @@ const StandardCard = ({ card, cards, setCards, ...props }) => {
</Flex>

{/* <ReportButton /> */}
<Button
variant={selected ? "Grey" : "Blue-outlined"}
onClick={reportAddHandler}
flexGrow={0}
flexShrink={0}
{...props}
fontSize="3xs"
size="sm"
isDisabled={user?.isLoggedIn ? false : true}
>
{!selected ? "Add To Report" : "Del From Report"}
</Button>
{user?.isLoggedIn && (
<Button
variant={selected ? "Grey" : "Blue-outlined"}
onClick={reportAddHandler}
flexGrow={0}
flexShrink={0}
{...props}
fontSize="3xs"
size="sm"
isDisabled={user?.isLoggedIn ? false : true}
>
{!selected ? "Add To Report" : "Del From Report"}
</Button>
)}
</HStack>

<CardModalWithForm
Expand Down

0 comments on commit 8973d0d

Please sign in to comment.