Check for expires compelted tutorial cookie.

This commit is contained in:
Lucid Kobold
2022-06-23 17:20:05 -05:00
parent 124ea164f5
commit 9c18730126
4 changed files with 130 additions and 22 deletions

View File

@@ -12,10 +12,6 @@ interface TutorialProps {
}
const Tutorial = ({ isLoading }: TutorialProps): JSX.Element => {
// TODO: Add an expiration validator.
// TODO: Add a version validator that removed the completed tutorial storages when there were major changes to the tutorial.
// * The changes are tracked via env variables. The last version that user saw the tutorial is saved in storage.
return (
<VStack
h="auto"
@@ -27,6 +23,7 @@ const Tutorial = ({ isLoading }: TutorialProps): JSX.Element => {
py={4}
px={{ base: 0, sm: 2, md: 4 }}
bg="gray.700"
borderRadius={{ base: "", sm: "2xl" }}
>
<TutorialHeading />
<TutorialAboutApp />