refactor(web): remove typescript
This commit is contained in:
@@ -7,16 +7,12 @@ import CardContent from '@mui/material/CardContent';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import Grid from '@mui/material/Grid';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import useInvoices from 'hooks/useInvoices.ee';
|
||||
import useFormatMessage from 'hooks/useFormatMessage';
|
||||
|
||||
export default function Invoices() {
|
||||
const formatMessage = useFormatMessage();
|
||||
const { invoices, loading } = useInvoices();
|
||||
|
||||
if (loading || invoices.length === 0) return <React.Fragment />;
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Card sx={{ mb: 3, p: 2 }}>
|
||||
@@ -69,7 +65,9 @@ export default function Invoices() {
|
||||
fontWeight="500"
|
||||
sx={{ color: 'text.secondary' }}
|
||||
>
|
||||
{DateTime.fromISO(invoice.payout_date).toFormat('LLL dd, yyyy')}
|
||||
{DateTime.fromISO(invoice.payout_date).toFormat(
|
||||
'LLL dd, yyyy',
|
||||
)}
|
||||
</Typography>
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user