Skip to content

Commit

Permalink
Redesign filters on report
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Sep 26, 2024
1 parent 46d40cd commit 1c2cc8a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
34 changes: 31 additions & 3 deletions centrifuge-app/src/components/Report/ReportFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import { Loan, Pool } from '@centrifuge/centrifuge-js'
import { useGetNetworkName } from '@centrifuge/centrifuge-react'
import { AnchorButton, Box, DateInput, SearchInput, Select, Shelf } from '@centrifuge/fabric'
import {
AnchorButton,
Box,
Button,
DateInput,
IconBalanceSheet,
IconCashflow,
IconDownload,
IconProfitAndLoss,
SearchInput,
Select,
Shelf,
} from '@centrifuge/fabric'
import * as React from 'react'
import { useNavigate } from 'react-router'
import { nftMetadataSchema } from '../../schemas'
Expand Down Expand Up @@ -336,9 +348,25 @@ export function ReportFilter({ pool }: ReportFilterProps) {
/>
</>
)}
<Button variant="secondary" icon={<IconBalanceSheet color="textInverted" />}>
Balance sheet
</Button>
<Button variant="secondary" icon={<IconProfitAndLoss />}>
Profit & loss
</Button>
<Button variant="secondary" icon={<IconCashflow />}>
Cash flow
</Button>
<Box ml="auto">
<AnchorButton href={csvData?.dataUrl} download={csvData?.fileName} variant="primary" small disabled={!csvData}>
Export CSV
<AnchorButton
disabled={!csvData}
download={csvData?.fileName}
href={csvData?.dataUrl}
icon={<IconDownload />}
small
variant="inverted"
>
CSV
</AnchorButton>
</Box>
</Shelf>
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/icon-svg/IconBalanceSheet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion fabric/src/icon-svg/IconCashflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion fabric/src/icon-svg/IconProfitAndLoss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c2cc8a

Please sign in to comment.