From 75516064d79acb3c64ae0470a110e4a453c8682e Mon Sep 17 00:00:00 2001 From: CleanBread Date: Thu, 30 Jan 2025 16:18:48 +0100 Subject: [PATCH] fix overflow --- .../inputs/Dropdown/views/Desktop/Dekstop.tsx | 10 +++++----- .../components/Controls/components/Balance/Balance.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/inputs/Dropdown/views/Desktop/Dekstop.tsx b/src/components/inputs/Dropdown/views/Desktop/Dekstop.tsx index f0663db..7d9b2cb 100644 --- a/src/components/inputs/Dropdown/views/Desktop/Dekstop.tsx +++ b/src/components/inputs/Dropdown/views/Desktop/Dekstop.tsx @@ -1,6 +1,6 @@ import React, { forwardRef } from 'react' import cx from 'classnames' -import { Menu } from '@headlessui/react' +import { Menu, MenuButton, MenuItems } from '@headlessui/react' import type { DropdownProps } from '../../Dropdown' @@ -27,7 +27,7 @@ const Desktop = forwardRef((props, ref) => { as="div" className={rootClassName} > - @@ -46,12 +46,12 @@ const Desktop = forwardRef((props, ref) => { ) } } - - + +
{content}
-
+ ) }) diff --git a/src/compositions/PageLayout/components/Content/components/Controls/components/Balance/Balance.tsx b/src/compositions/PageLayout/components/Content/components/Controls/components/Balance/Balance.tsx index 7d603a0..7c08709 100644 --- a/src/compositions/PageLayout/components/Content/components/Controls/components/Balance/Balance.tsx +++ b/src/compositions/PageLayout/components/Content/components/Controls/components/Balance/Balance.tsx @@ -3,7 +3,7 @@ import React from 'react' import { useBetTokenBalance, useBetsSummary, useChain, useNativeBalance } from '@azuro-org/sdk' import { type ChainId } from '@azuro-org/toolkit' -import { Listbox } from '@headlessui/react' +import { Listbox, ListboxButton, ListboxOptions } from '@headlessui/react' import { Message } from '@locmod/intl' import cx from 'classnames' import { openModal } from '@locmod/modal' @@ -50,7 +50,7 @@ const ChainSelect: React.FC = () => { return (
-
@@ -63,8 +63,8 @@ const ChainSelect: React.FC = () => {
{appChain.name}
-
- + + { config.chains.map((chain) => { const isActive = appChain.id === chain.id @@ -102,7 +102,7 @@ const ChainSelect: React.FC = () => { ) }) } - +
)