-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
11 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
32 changes: 32 additions & 0 deletions
32
frontend/src/view/pages/Dashboard/components/Fab/index.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,32 @@ | ||
import { PlusIcon } from "@radix-ui/react-icons"; | ||
import { DropdownMenu, DropdownMenuItem } from "../../../../components/DropdownMenu"; | ||
|
||
export function Fab() { | ||
return ( | ||
<div className="fixed right-4 bottom-4"> | ||
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger> | ||
<button | ||
className="bg-teal-900 w-12 h-12 rounded-full flex items-center justify-center" | ||
> | ||
<PlusIcon className="w-6 h-6" /> | ||
</button> | ||
</DropdownMenu.Trigger> | ||
|
||
<DropdownMenu.Content> | ||
<DropdownMenuItem> | ||
Nova Despesa | ||
</DropdownMenuItem> | ||
|
||
<DropdownMenuItem> | ||
Nova Receita | ||
</DropdownMenuItem> | ||
|
||
<DropdownMenuItem> | ||
Nova Conta | ||
</DropdownMenuItem> | ||
</DropdownMenu.Content> | ||
</DropdownMenu.Root> | ||
</div> | ||
); | ||
} |
36 changes: 36 additions & 0 deletions
36
frontend/src/view/pages/Dashboard/components/Transactions/TransactionTypeDropdown.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,36 @@ | ||
import { ChevronDownIcon } from "@radix-ui/react-icons"; | ||
import { TransactionsIcon } from "../../../../components/icons/TransactionsIcon"; | ||
import { DropdownMenu } from "../../../../components/DropdownMenu"; | ||
import { IncomeIcon } from "../../../../components/icons/IncomeIcon"; | ||
import { ExpensesIcon } from "../../../../components/icons/ExpensesIcon"; | ||
|
||
export function TransactionTypeDropdown() { | ||
return ( | ||
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger> | ||
<button className="flex items-center gap-2"> | ||
<TransactionsIcon /> | ||
<span className="text-sm text-gray-800 tracking-[-0.5px] font-medium">Transações</span> | ||
<ChevronDownIcon className="text-gray-900" /> | ||
</button> | ||
</DropdownMenu.Trigger> | ||
|
||
<DropdownMenu.Content className="w-[279px]"> | ||
<DropdownMenu.Item className="gap-2"> | ||
<IncomeIcon /> | ||
Receitas | ||
</DropdownMenu.Item> | ||
|
||
<DropdownMenu.Item className="gap-2"> | ||
<ExpensesIcon /> | ||
Despesas | ||
</DropdownMenu.Item> | ||
|
||
<DropdownMenu.Item className="gap-2"> | ||
<TransactionsIcon /> | ||
Transações | ||
</DropdownMenu.Item> | ||
</DropdownMenu.Content> | ||
</DropdownMenu.Root> | ||
); | ||
} |
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