Add open modal

This commit is contained in:
1ilit
2023-10-26 20:26:13 +03:00
parent 4596864e2f
commit 63be981131
3 changed files with 68 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import { IconCrossStroked } from "@douyinfe/semi-icons";
import Navbar from "../components/Navbar";
import { useLiveQuery } from "dexie-react-hooks";
import { db } from "../data/db";
export default function LandingPage() {
@@ -18,11 +18,6 @@ export default function LandingPage() {
});
};
const diagrams = useLiveQuery(() => db.diagrams.toArray());
useEffect(() => {
console.log(diagrams);
}, [diagrams]);
useEffect(() => {
document.body.setAttribute("theme-mode", "light");
document.title =