Updating value passed to demostickers component
This commit is contained in:
@@ -102,7 +102,9 @@ const Day = ({
|
||||
key={stickerState === null ? Math.random() : stickerState}
|
||||
fontSize="1.5rem"
|
||||
>
|
||||
<DemoStickers stickerVal={stickerState} />
|
||||
<DemoStickers
|
||||
stickerVal={stickerState === null ? null : stickerState}
|
||||
/>
|
||||
</Box>
|
||||
</VStack>
|
||||
)}
|
||||
@@ -143,7 +145,9 @@ const Day = ({
|
||||
key={stickerState === null ? Math.random() : stickerState}
|
||||
fontSize="1.5rem"
|
||||
>
|
||||
<DemoStickers stickerVal={stickerState} />
|
||||
<DemoStickers
|
||||
stickerVal={stickerState === null ? null : stickerState}
|
||||
/>
|
||||
</Box>
|
||||
<StickersContextProvider>
|
||||
{isBefore(date, endOfDay(new Date())) && (
|
||||
|
||||
@@ -64,7 +64,6 @@ const AddSticker = ({
|
||||
|
||||
// TODO: Invalidate submit button if the selected sticker is the same as the current sticker.
|
||||
|
||||
|
||||
// TODO: Display the current sticker above the selection screen if a current sticker exists.
|
||||
|
||||
// TODO: Invalidate the button for the current sticker and gray it out.
|
||||
|
||||
Reference in New Issue
Block a user