-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E 2487 move financial section in a dedicated financial tabs (#694)
- Loading branch information
1 parent
0cfb577
commit f8555f4
Showing
40 changed files
with
288 additions
and
315 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
app/financials/[sponsorId]/_features/programs-table/programs-table.types.ts
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
app/financials/[sponsorId]/_sections/financial-section/financial-section.tsx
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
app/financials/[sponsorId]/_sections/programs-section/programs-section.tsx
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
app/financials/[sponsorId]/_sections/programs-section/programs-section.types.ts
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
app/financials/[sponsorId]/_views/financial/deposit-button/deposit-button.tsx
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,22 @@ | ||
import { DepositButtonProps } from "@/app/financials/[sponsorId]/_views/financial/deposit-button/deposit-button.types"; | ||
|
||
import { Button } from "@/design-system/atoms/button/variants/button-default"; | ||
|
||
import { useCurrencyListSidepanel } from "@/shared/panels/currency-list-sidepanel/currency-list-sidepanel.hooks"; | ||
|
||
export function DepositButton({ sponsorId }: DepositButtonProps) { | ||
const { open: openCurrencyListSidepanel } = useCurrencyListSidepanel(); | ||
|
||
return ( | ||
<Button | ||
variant={"primary"} | ||
size={"sm"} | ||
translate={{ token: "financials:details.financial.buttons.makeDeposit" }} | ||
classNames={{ | ||
base: "max-w-full overflow-hidden", | ||
label: "whitespace-nowrap text-ellipsis overflow-hidden", | ||
}} | ||
onClick={() => openCurrencyListSidepanel({ sponsorId })} | ||
/> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
app/financials/[sponsorId]/_views/financial/deposit-button/deposit-button.types.ts
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,3 @@ | ||
export interface DepositButtonProps { | ||
sponsorId: string; | ||
} |
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
import { BudgetAvailableCards } from "@/app/financials/[sponsorId]/_views/financial/budget-available-cards/budget-available-cards"; | ||
|
||
export function Financial() { | ||
return ( | ||
<div> | ||
<BudgetAvailableCards /> | ||
</div> | ||
); | ||
} |
File renamed without changes.
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...tions-sidepanel/export-csv/export-csv.tsx → ...tions-sidepanel/export-csv/export-csv.tsx
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
8 changes: 4 additions & 4 deletions
8
...ions-sidepanel/transactions-sidepanel.tsx → ...ions-sidepanel/transactions-sidepanel.tsx
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
File renamed without changes.
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
8 changes: 4 additions & 4 deletions
8
...s-sidepanel/transactions/transactions.tsx → ...s-sidepanel/transactions/transactions.tsx
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
4 changes: 2 additions & 2 deletions
4
...sactions-trigger/transactions-trigger.tsx → ...sactions-trigger/transactions-trigger.tsx
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
3 changes: 3 additions & 0 deletions
3
app/financials/[sponsorId]/_views/programs/allocate-button/allocate-button.types.ts
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,3 @@ | ||
export interface AllocateButtonProps { | ||
sponsorId: string; | ||
} |
17 changes: 17 additions & 0 deletions
17
app/financials/[sponsorId]/_views/programs/create-button/create-button.tsx
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,17 @@ | ||
import { useCreateProgramPanel } from "@/app/financials/[sponsorId]/_features/create-program-panel/create-program-panel.hooks"; | ||
import { CreateButtonProps } from "@/app/financials/[sponsorId]/_views/programs/create-button/create-button.types"; | ||
|
||
import { Button } from "@/design-system/atoms/button/variants/button-default"; | ||
|
||
export function CreateButton({ sponsorId }: CreateButtonProps) { | ||
const { open: openCreateProgram } = useCreateProgramPanel(); | ||
|
||
return ( | ||
<Button | ||
variant={"secondary"} | ||
size={"sm"} | ||
onClick={() => openCreateProgram({ sponsorId })} | ||
translate={{ token: "financials:details.programs.actions.create" }} | ||
/> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
app/financials/[sponsorId]/_views/programs/create-button/create-button.types.ts
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,3 @@ | ||
export interface CreateButtonProps { | ||
sponsorId: string; | ||
} |
Oops, something went wrong.