Skip to content

Commit

Permalink
Remove date on top
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Jan 20, 2025
1 parent a608ac3 commit 5683512
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions centrifuge-app/src/components/Report/DataFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,22 @@ export function DataFilter({ poolId }: ReportFilterProps) {
</>
)}
</Grid>
<Box display="flex" alignItems="center" justifyContent="space-between" margin={2}>
<Box display="flex" alignItems="center">
<Text variant="body3" style={{ marginRight: 4, fontWeight: 600 }}>
{formatDate(startDate)}
</Text>
<Text variant="body3">-</Text>
<Text variant="body3" style={{ marginLeft: 4, fontWeight: 600 }}>
{formatDate(endDate)}
</Text>
</Box>
<Grid
gridTemplateColumns={[report === 'orders' ? '130px' : '1fr 130px']}
margin={2}
justifyContent={report === 'orders' ? 'end' : 'space-between'}
>
{report !== 'orders' && (
<Box display="flex" alignItems="center" justifyContent="flex-start">
<Text variant="body3" style={{ marginRight: 4, fontWeight: 600 }}>
{formatDate(startDate)}
</Text>
<Text variant="body3">-</Text>
<Text variant="body3" style={{ marginLeft: 4, fontWeight: 600 }}>
{formatDate(endDate)}
</Text>
</Box>
)}
<AnchorButton
disabled={!csvData}
download={csvData?.fileName}
Expand All @@ -256,7 +262,7 @@ export function DataFilter({ poolId }: ReportFilterProps) {
>
Download
</AnchorButton>
</Box>
</Grid>
</Stack>
)
}
Expand Down

0 comments on commit 5683512

Please sign in to comment.