Updating value passed to demostickers component

This commit is contained in:
Lucid Kobold
2022-02-10 02:21:55 -06:00
parent 622ec49933
commit 87a14c450b
2 changed files with 6 additions and 3 deletions

View File

@@ -102,7 +102,9 @@ const Day = ({
key={stickerState === null ? Math.random() : stickerState} key={stickerState === null ? Math.random() : stickerState}
fontSize="1.5rem" fontSize="1.5rem"
> >
<DemoStickers stickerVal={stickerState} /> <DemoStickers
stickerVal={stickerState === null ? null : stickerState}
/>
</Box> </Box>
</VStack> </VStack>
)} )}
@@ -143,7 +145,9 @@ const Day = ({
key={stickerState === null ? Math.random() : stickerState} key={stickerState === null ? Math.random() : stickerState}
fontSize="1.5rem" fontSize="1.5rem"
> >
<DemoStickers stickerVal={stickerState} /> <DemoStickers
stickerVal={stickerState === null ? null : stickerState}
/>
</Box> </Box>
<StickersContextProvider> <StickersContextProvider>
{isBefore(date, endOfDay(new Date())) && ( {isBefore(date, endOfDay(new Date())) && (

View File

@@ -64,7 +64,6 @@ const AddSticker = ({
// TODO: Invalidate submit button if the selected sticker is the same as the current sticker. // 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: 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. // TODO: Invalidate the button for the current sticker and gray it out.