forked from module-federation/module-federation-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDepositsWidget.js
More file actions
28 lines (26 loc) · 740 Bytes
/
DepositsWidget.js
File metadata and controls
28 lines (26 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from "react";
import { Box, Button, Typography, makeStyles } from "@material-ui/core";
const useStyles = makeStyles({
depositContext: {
flex: 1,
},
});
export default function DepositsWidget() {
const classes = useStyles();
return (
<Box display="flex" flexDirection="column" flex={1}>
<Typography component="h2" variant="h6" color="primary" gutterBottom>
Recent Deposits
</Typography>
<Typography component="p" variant="h4">
$3,024.00
</Typography>
<Typography color="textSecondary" className={classes.depositContext}>
on 15 March, 2019
</Typography>
<div>
<Button color="primary">View balance</Button>
</div>
</Box>
);
}