From c317c7b59d850468bde7d5783f318470f1e0c748 Mon Sep 17 00:00:00 2001 From: Danh Date: Tue, 12 Sep 2023 10:48:31 +0700 Subject: [PATCH] update css --- src/assets/svg/no-data.svg | 15 +++++++++++++++ src/components/swapv2/LimitOrder/ExpirePicker.tsx | 5 +++-- .../swapv2/LimitOrder/ListOrder/index.tsx | 7 ++++--- .../swapv2/LimitOrder/Modals/styled.tsx | 2 +- src/components/swapv2/LimitOrder/const.ts | 2 ++ 5 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 src/assets/svg/no-data.svg diff --git a/src/assets/svg/no-data.svg b/src/assets/svg/no-data.svg new file mode 100644 index 0000000000..6f0d4f30fc --- /dev/null +++ b/src/assets/svg/no-data.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/components/swapv2/LimitOrder/ExpirePicker.tsx b/src/components/swapv2/LimitOrder/ExpirePicker.tsx index e230c9f7ae..ae4ed43dfc 100644 --- a/src/components/swapv2/LimitOrder/ExpirePicker.tsx +++ b/src/components/swapv2/LimitOrder/ExpirePicker.tsx @@ -1,5 +1,6 @@ import { Trans } from '@lingui/macro' import dayjs from 'dayjs' +import { rgba } from 'polished' import { useCallback, useEffect, useMemo, useState } from 'react' import { Calendar, X } from 'react-feather' import { Flex, Text } from 'rebass' @@ -44,8 +45,8 @@ const DefaultOptionContainer = styled.div` ` const ResultContainer = styled.div` - border: ${({ theme }) => `1px solid ${theme.warning}`}; - padding: 10px; + background-color: ${({ theme }) => rgba(theme.warning, 0.2)}; + padding: 12px; border-radius: 20px; width: 100%; display: flex; diff --git a/src/components/swapv2/LimitOrder/ListOrder/index.tsx b/src/components/swapv2/LimitOrder/ListOrder/index.tsx index a04a0889ca..22abb15cb2 100644 --- a/src/components/swapv2/LimitOrder/ListOrder/index.tsx +++ b/src/components/swapv2/LimitOrder/ListOrder/index.tsx @@ -2,13 +2,14 @@ import { Trans, t } from '@lingui/macro' import { rgba } from 'polished' import { stringify } from 'querystring' import { ReactNode, forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react' -import { Info, Trash } from 'react-feather' +import { Trash } from 'react-feather' import { useNavigate } from 'react-router-dom' import { useMedia } from 'react-use' import { Flex, Text } from 'rebass' import { useGetListOrdersQuery } from 'services/limitOrder' import styled from 'styled-components' +import { ReactComponent as NoDataIcon } from 'assets/svg/no-data.svg' import { ButtonLight } from 'components/Button' import Column from 'components/Column' import LocalLoader from 'components/LocalLoader' @@ -376,12 +377,12 @@ export default forwardRef(function ListLimitOrder(props, ref) { ) : ( - + {keyword ? ( No orders found ) : isTabActive ? ( - You don't have any active orders yet + You don't have any open orders yet ) : ( You don't have any order history )} diff --git a/src/components/swapv2/LimitOrder/Modals/styled.tsx b/src/components/swapv2/LimitOrder/Modals/styled.tsx index 4b3a28cd55..bc7b4d19c5 100644 --- a/src/components/swapv2/LimitOrder/Modals/styled.tsx +++ b/src/components/swapv2/LimitOrder/Modals/styled.tsx @@ -103,7 +103,7 @@ export const MarketInfo = ({ > [ MIN_TIME_MINUTES * TIMES_IN_SECS.ONE_MIN, 10 * TIMES_IN_SECS.ONE_MIN, + 30 * TIMES_IN_SECS.ONE_MIN, TIMES_IN_SECS.ONE_HOUR, + TIMES_IN_SECS.ONE_DAY, 3 * TIMES_IN_SECS.ONE_DAY, 7 * TIMES_IN_SECS.ONE_DAY, 30 * TIMES_IN_SECS.ONE_DAY,