1
0
mirror of https://github.com/XFox111/PasswordGeneratorExtension.git synced 2026-04-22 08:08:01 +03:00

Major 4.0 (#380)

- Migrated to WXT
- Migrated to NPM
- Added Insert & copy action
- Added ESLint
This commit is contained in:
Eugene Fox
2024-09-25 16:19:12 +03:00
committed by GitHub
parent f2683e37b2
commit 3ecb6c4a31
71 changed files with 14338 additions and 7531 deletions
+38
View File
@@ -0,0 +1,38 @@
import { StorageProvider } from "@/utils/storage";
import { useTheme } from "@/utils/useTheme";
import { Accordion, FluentProvider, Spinner } from "@fluentui/react-components";
import { useState } from "react";
import { useStyles } from "./App.styles";
import AboutSection from "./sections/AboutSection";
import GeneratorView from "./sections/GeneratorView";
import SettingsSection from "./sections/SettingsSection";
import Snow from "./specials/Snow";
const App: React.FC = () =>
{
const theme = useTheme();
const cls = useStyles();
const [selection, setSelection] = useState<string[]>([]);
return (
<FluentProvider theme={ theme }>
<main className={ cls.root }>
<StorageProvider loader={ <Spinner size="large" className={ cls.spinner } /> }>
<GeneratorView collapse={ selection.includes("settings") } />
<Accordion
openItems={ selection }
onToggle={ (_, e) => setSelection(e.openItems as string[]) }
collapsible>
<SettingsSection />
<AboutSection />
</Accordion>
</StorageProvider>
<Snow />
</main>
</FluentProvider>
);
};
export default App;