c485934b06
* add filters UI * use filter schema * filter mixnode based on selected filters * only show filters on the mixnode page * use base api to get all mixnodes to avoid setting mixnodes in state * prevent additional request when status changes * create isMobile hook
23 lines
444 B
TypeScript
23 lines
444 B
TypeScript
import * as React from 'react';
|
|
import { Nav } from './components/Nav';
|
|
import { MobileNav } from './components/MobileNav';
|
|
import { Routes } from './routes/index';
|
|
import { useIsMobile } from './hooks/useIsMobile';
|
|
|
|
export const App: React.FC = () => {
|
|
const isMobile = useIsMobile();
|
|
|
|
if (isMobile) {
|
|
return (
|
|
<MobileNav>
|
|
<Routes />
|
|
</MobileNav>
|
|
);
|
|
}
|
|
return (
|
|
<Nav>
|
|
<Routes />
|
|
</Nav>
|
|
);
|
|
};
|