-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into provide-signed-url-for-uploaded-expense-files
- Loading branch information
Showing
125 changed files
with
9,201 additions
and
5,724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
|
||
import { AccountsSublist } from './AccountsSublist'; | ||
|
||
export default function AccountsList({ data, queryFilter, metric }) { | ||
const currency = data?.account?.[metric.id]?.current?.currency; | ||
|
||
const meta = { | ||
queryFilter, | ||
currency: currency, | ||
isAmount: !!metric.amount, | ||
metric, | ||
}; | ||
|
||
return ( | ||
<div className="space-y-8"> | ||
<AccountsSublist label="Main account" type="COLLECTIVE" data={data} metric={metric} meta={meta} /> | ||
<AccountsSublist label="Projects" type="PROJECT" data={data} metric={metric} meta={meta} /> | ||
|
||
<AccountsSublist label="Events" type="EVENT" data={data} metric={metric} meta={meta} /> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.