mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
refactor(dashboard): reorganiza widgets e remove magnet-lines
This commit is contained in:
11
lib/dashboard/payment-overview-tabs.ts
Normal file
11
lib/dashboard/payment-overview-tabs.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export type PaymentOverviewTab = "conditions" | "methods";
|
||||
|
||||
export const DEFAULT_PAYMENT_OVERVIEW_TAB: PaymentOverviewTab = "conditions";
|
||||
|
||||
export const parsePaymentOverviewTab = (value: string): PaymentOverviewTab => {
|
||||
if (value === "methods") {
|
||||
return "methods";
|
||||
}
|
||||
|
||||
return DEFAULT_PAYMENT_OVERVIEW_TAB;
|
||||
};
|
||||
Reference in New Issue
Block a user