(demo) add onboarding modal

On first visit, display an onboarding modal to explain the purpose of
this demo.
This commit is contained in:
jbpenrath
2024-02-15 11:12:27 +01:00
committed by Jean-Baptiste PENRATH
parent 86138df8fe
commit bacd9446b4
6 changed files with 115 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import {
import React, { useEffect, useMemo, useState } from "react";
import { Create } from "./Create";
import { Home } from "./Home";
import Onboarding from "./Onboarding";
enum Theme {
CUNNINGHAM = "cunningham",
@@ -90,6 +91,7 @@ export const App = () => {
alt="Background pattern"
/>
)}
<Onboarding />
<Home modal={modal} />
<Create {...modal} />
</div>