Create and delete tokens from web ui
This commit is contained in:
34
moneymgr_web/src/widgets/MoneyMgrWebRouteContainer.tsx
Normal file
34
moneymgr_web/src/widgets/MoneyMgrWebRouteContainer.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import { Typography } from "@mui/material";
|
||||
import React, { PropsWithChildren } from "react";
|
||||
|
||||
export function MoneyMgrWebRouteContainer(
|
||||
p: {
|
||||
label: string;
|
||||
actions?: React.ReactElement;
|
||||
} & PropsWithChildren
|
||||
): React.ReactElement {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
margin: "50px",
|
||||
flex: "1",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
marginBottom: "20px",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h4">{p.label}</Typography>
|
||||
{p.actions ?? <></>}
|
||||
</div>
|
||||
|
||||
{p.children}
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user