Skip to content

Commit

Permalink
router refactor (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Jul 26, 2023
1 parent 76cfddf commit 5b2f06c
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 125 deletions.
1 change: 1 addition & 0 deletions e2e/parallel/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default mergeConfig(
viteConfig,
defineConfig({
test: {
bail: 1,
threads: false,
},
}) as UserConfig,
Expand Down
1 change: 1 addition & 0 deletions e2e/serial/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default mergeConfig(
defineConfig({
test: {
threads: false,
bail: 1,
sequence: {
shuffle: false,
sequencer: class Sequencer {
Expand Down
1 change: 1 addition & 0 deletions e2e/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export default defineConfig({
testTimeout: 90_000,
watch: false,
retry: 2,
bail: 1,
},
}) as UserConfig;
15 changes: 1 addition & 14 deletions src/entries/popup/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client';
import * as React from 'react';
import { HashRouter } from 'react-router-dom';
import { WagmiConfig } from 'wagmi';

import { analytics } from '~/analytics';
Expand All @@ -18,14 +16,10 @@ import { useCurrentThemeStore } from '~/core/state/currentSettings/currentTheme'
import { POPUP_DIMENSIONS } from '~/core/utils/dimensions';
import { createWagmiClient } from '~/core/wagmi';
import { Box, ThemeProvider } from '~/design-system';
import { Alert } from '~/design-system/components/Alert/Alert';

import { Routes } from './Routes';
import { CommandK } from './components/CommandK/CommandK';
import { HWRequestListener } from './components/HWRequestListener/HWRequestListener';
import { IdleTimer } from './components/IdleTimer/IdleTimer';
import { Toast } from './components/Toast/Toast';
import { WindowStroke } from './components/WindowStroke/WindowStroke';
import { AuthProvider } from './hooks/useAuth';
import { useIsFullScreen } from './hooks/useIsFullScreen';
import { PlaygroundComponents } from './pages/_playgrounds';
Expand Down Expand Up @@ -86,14 +80,7 @@ export function App() {
: undefined,
}}
>
<HashRouter>
<Routes>
<CommandK />
<Toast />
<Alert />
<WindowStroke />
</Routes>
</HashRouter>
<Routes />
</Box>
<IdleTimer />
</AuthProvider>
Expand Down
Loading

0 comments on commit 5b2f06c

Please sign in to comment.