mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-06 16:55:08 -04:00
feat: cargo project at root
This commit is contained in:
parent
aa0c0623ca
commit
709a2820c4
313 changed files with 1 additions and 740 deletions
|
@ -0,0 +1,22 @@
|
|||
import { ReactNode } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { ListItem, ListItemIcon, ListItemText } from '@material-ui/core';
|
||||
|
||||
export default function RouteListItemIconButton({
|
||||
name,
|
||||
route,
|
||||
children,
|
||||
}: {
|
||||
name: string;
|
||||
route: string;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<ListItem button onClick={() => navigate(route)} key={name}>
|
||||
<ListItemIcon>{children}</ListItemIcon>
|
||||
<ListItemText primary={name} />
|
||||
</ListItem>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue