Skip to content

Commit

Permalink
Merge branch 'fix-availability-and-docker-when-isolated' of https://g…
Browse files Browse the repository at this point in the history
…ithub.com/smallcloudai/refact-chat-js into fix-availability-and-docker-when-isolated
  • Loading branch information
alashchev17 committed Dec 11, 2024
2 parents fc0b910 + 96b206d commit 7bdd63a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/components/Toolbar/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import { useOpenUrl } from "../../hooks/useOpenUrl";
import { DropdownMenu, Flex, IconButton } from "@radix-ui/themes";
import { HamburgerMenuIcon, DiscordLogoIcon } from "@radix-ui/react-icons";
import { Coin } from "../../images";

export type DropdownNavigationOptions =
| "fim"
Expand Down Expand Up @@ -86,17 +85,8 @@ export const Dropdown: React.FC<DropdownProps> = ({
)}

{user.data && (
<DropdownMenu.Label>
<Flex align="center" gap="1">
<Coin /> {user.data.metering_balance} coins
</Flex>
</DropdownMenu.Label>
)}
{user.data && (
<DropdownMenu.Label>
<Flex align="center" gap="1">
Active plan: {user.data.inference}
</Flex>
<DropdownMenu.Label style={{ marginTop: 0 }}>
<Flex align="center">Active plan: {user.data.inference}</Flex>
</DropdownMenu.Label>
)}

Expand Down

0 comments on commit 7bdd63a

Please sign in to comment.