From fa81e9bc0a53168398dcab4f16f72d17797e1f42 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Mon, 17 Jul 2023 17:52:35 +0700 Subject: [PATCH] add X button --- .../KyberDAO/KNCUtility/EligibleTxModal.tsx | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/pages/KyberDAO/KNCUtility/EligibleTxModal.tsx b/src/pages/KyberDAO/KNCUtility/EligibleTxModal.tsx index 2b3075e664..2ab6171d07 100644 --- a/src/pages/KyberDAO/KNCUtility/EligibleTxModal.tsx +++ b/src/pages/KyberDAO/KNCUtility/EligibleTxModal.tsx @@ -1,5 +1,6 @@ import { Trans } from '@lingui/macro' import { useState } from 'react' +import { X } from 'react-feather' import { useMedia } from 'react-use' import { Flex, Text } from 'rebass' import styled from 'styled-components' @@ -7,6 +8,7 @@ import styled from 'styled-components' import CopyHelper from 'components/Copy' import Modal from 'components/Modal' import Pagination from 'components/Pagination' +import { RowBetween } from 'components/Row' import { NativeCurrencies } from 'constants/tokens' import { useActiveWeb3React } from 'hooks' import { useEligibleTransactions } from 'hooks/kyberdao' @@ -43,22 +45,35 @@ const IconWrapper = styled.div` `}; ` +const CloseButton = styled.div` + svg { + display: block; + } + :hover { + filter: brightness(0.8); + } +` + export default function EligibleTxModal({ isOpen, closeModal }: { isOpen: boolean; closeModal: () => void }) { const { chainId, networkInfo } = useActiveWeb3React() const [currentPage, setCurrentPage] = useState(1) const eligibleTxs = useEligibleTransactions(currentPage, 10) const theme = useTheme() const upToExtraSmall = useMedia(`(max-width: ${MEDIA_WIDTHS.upToExtraSmall}px)`) - const upToMedium = useMedia(`(max-width: ${MEDIA_WIDTHS.upToMedium}px)`) return ( - - Your transactions - + + + Your transactions + + + + +