Merge pull request #41 from jejolare-dev/feat/zano_ui_integration
Feat/zano UI integration
This commit is contained in:
commit
28faf0444e
44 changed files with 135 additions and 231 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "submodules/zano_ui"]
|
||||
path = submodules/zano_ui
|
||||
url = https://github.com/PRavaga/zano_ui.git
|
||||
|
|
@ -17,8 +17,16 @@ const nextConfig = {
|
|||
},
|
||||
webpack: (config) => {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
use: ['@svgr/webpack', 'url-loader'],
|
||||
test: /\.svg$/i,
|
||||
resourceQuery: /url/, // *.svg?url
|
||||
type: 'asset/resource',
|
||||
});
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/i,
|
||||
issuer: /\.[jt]sx?$/,
|
||||
resourceQuery: { not: [/url/] },
|
||||
use: ['@svgr/webpack'],
|
||||
});
|
||||
|
||||
return config;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
"eslint": "eslint . --ext .js,.ts,.tsx,.jsx --fix",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check .",
|
||||
"prepare": "husky"
|
||||
"prepare": "husky",
|
||||
"submodule": "git submodule update --init --recursive"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx}": [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Popup from '@/components/UI/Popup/Popup';
|
||||
import successIcon from '@/assets/images/UI/success.svg';
|
||||
import smallCrossIcon from '@/assets/images/UI/cross_icon_small.svg';
|
||||
import errorIcon from '@/assets/images/UI/error.svg';
|
||||
import successIcon from '@/assets/images/UI/success.svg?url';
|
||||
import smallCrossIcon from '@/assets/images/UI/cross_icon_small.svg?url';
|
||||
import errorIcon from '@/assets/images/UI/error.svg?url';
|
||||
import AlertProps from '@/interfaces/props/components/UI/Alert/AlertProps';
|
||||
import Preloader from '../Preloader/Preloader';
|
||||
import styles from './Alert.module.scss';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactComponent as DropdownArrowIcon } from '@/assets/images/UI/dropdown_arrow.svg';
|
||||
import DropdownArrowIcon from '@/assets/images/UI/dropdown_arrow.svg';
|
||||
import { useContext, useEffect, useRef, useState } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { ReactComponent as CalendarIcon } from '@/assets/images/UI/callendar.svg';
|
||||
import { ReactComponent as CalendarArrowIcon } from '@/assets/images/UI/calendar_arrow.svg';
|
||||
import CalendarIcon from '@/assets/images/UI/callendar.svg';
|
||||
import CalendarArrowIcon from '@/assets/images/UI/calendar_arrow.svg';
|
||||
import { useRef, useState, useEffect, ReactNode } from 'react';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { toStandardDateString } from '@/utils/utils';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactComponent as LockIcon } from '@/assets/images/UI/lock.svg';
|
||||
import LockIcon from '@/assets/images/UI/lock.svg';
|
||||
import styles from './DepositTitle.module.scss';
|
||||
import EmptyLink from '../EmptyLink/EmptyLink';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { ReactComponent as DropdownArrowIcon } from '@/assets/images/UI/dropdown_arrow.svg';
|
||||
import { ReactComponent as SearchIcon } from '@/assets/images/UI/search_icon.svg';
|
||||
import { ReactComponent as StarIcon } from '@/assets/images/UI/star_icon.svg';
|
||||
import DropdownArrowIcon from '@/assets/images/UI/dropdown_arrow.svg';
|
||||
import SearchIcon from '@/assets/images/UI/search_icon.svg';
|
||||
import StarIcon from '@/assets/images/UI/star_icon.svg';
|
||||
import Image from 'next/image';
|
||||
import { useState, useEffect, useRef, useContext, MouseEvent } from 'react';
|
||||
import { Store } from '@/store/store-reducer';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { ReactComponent as NoOffersIcon } from '@/assets/images/UI/no_offers.svg';
|
||||
import NoOffersIcon from '@/assets/images/UI/no_offers.svg';
|
||||
import { classes } from '@/utils/utils';
|
||||
import styles from './styles.module.scss';
|
||||
import { EmptyMessageProps } from './types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import Button from '@/components/UI/Button/Button';
|
||||
import { ReactComponent as RefreshIcon } from '@/assets/images/UI/refresh_icon.svg';
|
||||
import RefreshIcon from '@/assets/images/UI/refresh_icon.svg';
|
||||
import Input from '@/components/UI/Input/Input';
|
||||
import CurrencyDropdown from '@/components/UI/CurrencyDropdown/CurrencyDropdown';
|
||||
import FiltersProps from '@/interfaces/props/components/UI/Filters/FiltersProps';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactComponent as ArrowWhiteIcon } from '@/assets/images/UI/arrow_white.svg';
|
||||
import ArrowWhiteIcon from '@/assets/images/UI/arrow_white.svg';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { useRouter } from 'next/router';
|
||||
import { classes } from '@/utils/utils';
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
.footer {
|
||||
padding: 30px 35px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin-top: auto;
|
||||
|
||||
border-top: 1px solid var(--delimiter-color);
|
||||
|
||||
.footer__copyright {
|
||||
p {
|
||||
color: var(--font-dimmed-color);
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.footer__refs {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
column-gap: 20px;
|
||||
row-gap: 15px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
> a {
|
||||
font-size: 16px;
|
||||
|
||||
&.footer__ref_selected {
|
||||
color: var(--footer-selected-link);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.footer__ref_disabled {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
import { classes } from '@/utils/utils';
|
||||
import Link from 'next/link';
|
||||
import styles from './Footer.module.scss';
|
||||
|
||||
type SelectedLink = 'home' | 'explorer' | 'trade' | 'auction' | 'messenger' | 'wrapped-zano';
|
||||
|
||||
const links: {
|
||||
title: string;
|
||||
type: SelectedLink;
|
||||
link: string;
|
||||
disabled?: boolean;
|
||||
}[] = [
|
||||
{
|
||||
title: 'Zano Website',
|
||||
type: 'home',
|
||||
link: 'https://zano.org/',
|
||||
},
|
||||
{
|
||||
title: 'Explorer',
|
||||
type: 'explorer',
|
||||
link: 'https://explorer.zano.org/',
|
||||
},
|
||||
{
|
||||
title: 'Trade',
|
||||
type: 'trade',
|
||||
link: 'https://trade.zano.org/',
|
||||
},
|
||||
{
|
||||
title: 'Auction',
|
||||
type: 'auction',
|
||||
link: 'https://wrapped.zano.org/',
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
title: 'Messenger',
|
||||
type: 'messenger',
|
||||
link: 'https://messenger.zano.org/',
|
||||
},
|
||||
{
|
||||
title: 'Wrapped Zano',
|
||||
type: 'wrapped-zano',
|
||||
link: 'https://wrapped.zano.org/',
|
||||
},
|
||||
];
|
||||
|
||||
const selectedLink: SelectedLink = 'trade';
|
||||
|
||||
function Footer() {
|
||||
return (
|
||||
<footer className={styles.footer}>
|
||||
<div className={styles.footer__refs}>
|
||||
{links.map((e) => (
|
||||
<Link
|
||||
className={classes(
|
||||
e.type === selectedLink && styles.footer__ref_selected,
|
||||
e.disabled && styles.footer__ref_disabled,
|
||||
)}
|
||||
key={e.type}
|
||||
href={e.link}
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{e.title}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
<div className={styles.footer__copyright}>
|
||||
<p>Copyright © {new Date().getFullYear()} ZANO.org</p>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
import logoImg from '@/assets/images/UI/logo_block.svg';
|
||||
import logoImgWhite from '@/assets/images/UI/logo_block_dark.svg';
|
||||
import { ReactComponent as LogOutIcon } from '@/assets/images/UI/logout.svg';
|
||||
import { ReactComponent as BurgerIcon } from '@/assets/images/UI/hamburger_icon.svg';
|
||||
import { ReactComponent as BurgerCrossIcon } from '@/assets/images/UI/burger_cross.svg';
|
||||
import logoImg from '@/assets/images/UI/logo_block.svg?url';
|
||||
import logoImgWhite from '@/assets/images/UI/logo_block_dark.svg?url';
|
||||
import LogOutIcon from '@/assets/images/UI/logout.svg';
|
||||
import BurgerIcon from '@/assets/images/UI/hamburger_icon.svg';
|
||||
import BurgerCrossIcon from '@/assets/images/UI/burger_cross.svg';
|
||||
import React, { useRef, useState, useEffect, useContext } from 'react';
|
||||
import { ReactComponent as EyeIcon } from '@/assets/images/UI/eye.svg';
|
||||
import { ReactComponent as EyeCloseIcon } from '@/assets/images/UI/eye_close.svg';
|
||||
import zanoIcon from '@/assets/images/UI/zano.svg';
|
||||
import bitcoinWhiteIcon from '@/assets/images/UI/wbtc.svg';
|
||||
import sunIcon from '@/assets/images/UI/sun_icon.svg';
|
||||
import moonIcon from '@/assets/images/UI/moon_icon.svg';
|
||||
import ethWhiteIcon from '@/assets/images/UI/weth.svg';
|
||||
import customWhiteIcon from '@/assets/images/UI/tsds.svg';
|
||||
import EyeIcon from '@/assets/images/UI/eye.svg';
|
||||
import EyeCloseIcon from '@/assets/images/UI/eye_close.svg';
|
||||
import zanoIcon from '@/assets/images/UI/zano.svg?url';
|
||||
import bitcoinWhiteIcon from '@/assets/images/UI/wbtc.svg?url';
|
||||
import sunIcon from '@/assets/images/UI/sun_icon.svg?url';
|
||||
import moonIcon from '@/assets/images/UI/moon_icon.svg?url';
|
||||
import ethWhiteIcon from '@/assets/images/UI/weth.svg?url';
|
||||
import customWhiteIcon from '@/assets/images/UI/tsds.svg?url';
|
||||
import Link from 'next/link';
|
||||
import Tooltip from '@/components/UI/Tooltip/Tooltip';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
|
|
@ -28,7 +28,7 @@ import Decimal from 'decimal.js';
|
|||
import socket from '@/utils/socket';
|
||||
import { OrderDataWithPair } from '@/interfaces/responses/orders/GetOrdersPageRes';
|
||||
import { useRouter } from 'next/router';
|
||||
import zanoImg from '@/assets/images/UI/zano.svg';
|
||||
import zanoImg from '@/assets/images/UI/zano.svg?url';
|
||||
import useUpdateUser from '@/hook/useUpdateUser';
|
||||
import NavBar from './NavBar/NavBar';
|
||||
import styles from './Header.module.scss';
|
||||
|
|
@ -139,7 +139,7 @@ function Header({ isLg }: { isLg?: boolean }) {
|
|||
title="ZANO"
|
||||
amount={Number(assets.find((e) => e.ticker === 'ZANO')?.balance) || 0}
|
||||
></Row>
|
||||
{/* <img
|
||||
{/* <img
|
||||
onClick={() => setBalanceState(!balanceSeen)}
|
||||
src={balanceSeen ? eyeCloseIcon : eyeIcon} alt="see"
|
||||
style={!balanceSeen ? {opacity: "0.6"} : {}}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import Link from 'next/link';
|
||||
|
||||
import { ReactComponent as TradeIcon } from '@/assets/images/UI/trade_icon.svg';
|
||||
import { ReactComponent as SwapIcon } from '@/assets/images/UI/swap_icon.svg';
|
||||
import { ReactComponent as PersonsIcon } from '@/assets/images/UI/persons_icon.svg';
|
||||
import TradeIcon from '@/assets/images/UI/trade_icon.svg';
|
||||
import SwapIcon from '@/assets/images/UI/swap_icon.svg';
|
||||
import PersonsIcon from '@/assets/images/UI/persons_icon.svg';
|
||||
import NavItemProps from '@/interfaces/props/components/default/Header/NavBar/NavItemProps';
|
||||
import NavBarProps from '@/interfaces/props/components/default/Header/NavBar/NavBarProps';
|
||||
import NotificationIndicator from '@/components/UI/NotificationIndicator/NotificationIndicator';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactComponent as ArrowRight } from '@/assets/images/UI/arrow_blue_right.svg';
|
||||
import ArrowRight from '@/assets/images/UI/arrow_blue_right.svg';
|
||||
import { Store } from '@/store/store-reducer';
|
||||
import { useContext } from 'react';
|
||||
import MainPageTitleProps from '@/interfaces/props/components/default/MainPageTitle/MainPageTitleProps';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import arrowIcon from '@/assets/images/UI/arrow.svg';
|
||||
import lockIcon from '@/assets/images/UI/lock.svg';
|
||||
import crossIcon from '@/assets/images/UI/cross_icon.svg';
|
||||
import deleteIcon from '@/assets/images/UI/delete.svg';
|
||||
import editIcon from '@/assets/images/UI/edit.svg';
|
||||
import noOffersIcon from '@/assets/images/UI/no_offers.svg';
|
||||
import noChatsIcon from '@/assets/images/UI/no_chats.svg';
|
||||
import arrowIcon from '@/assets/images/UI/arrow.svg?url';
|
||||
import lockIcon from '@/assets/images/UI/lock.svg?url';
|
||||
import crossIcon from '@/assets/images/UI/cross_icon.svg?url';
|
||||
import deleteIcon from '@/assets/images/UI/delete.svg?url';
|
||||
import editIcon from '@/assets/images/UI/edit.svg?url';
|
||||
import noOffersIcon from '@/assets/images/UI/no_offers.svg?url';
|
||||
import noChatsIcon from '@/assets/images/UI/no_chats.svg?url';
|
||||
import Link from 'next/link';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import Input from '@/components/UI/Input/Input';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { OrderDataWithPair } from '@/interfaces/responses/orders/GetOrdersPageRes';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { ReactComponent as CrossIcon } from '@/assets/images/UI/dex_cross_icon.svg';
|
||||
import CrossIcon from '@/assets/images/UI/dex_cross_icon.svg';
|
||||
import Image from 'next/image';
|
||||
import { notationToString, tradingKnownCurrencies } from '@/utils/utils';
|
||||
import Link from 'next/link';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { memo, useContext, useMemo } from 'react';
|
|||
import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from '@tanstack/react-table';
|
||||
import { useRouter } from 'next/router';
|
||||
import Image from 'next/image';
|
||||
import { ReactComponent as ClockIcon } from '@/assets/images/UI/clock_icon.svg';
|
||||
import ClockIcon from '@/assets/images/UI/clock_icon.svg';
|
||||
import { Store } from '@/store/store-reducer';
|
||||
import PairData from '@/interfaces/common/PairData';
|
||||
import { ContextState } from '@/interfaces/common/ContextValue';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import InputPanelItemProps from '@/interfaces/props/pages/dex/trading/InputPanel
|
|||
import CreateOrderData from '@/interfaces/fetch-data/create-order/CreateOrderData';
|
||||
import Decimal from 'decimal.js';
|
||||
import Alert from '@/components/UI/Alert/Alert';
|
||||
import infoIcon from '@/assets/images/UI/info_alert_icon.svg';
|
||||
import infoIcon from '@/assets/images/UI/info_alert_icon.svg?url';
|
||||
import Image from 'next/image';
|
||||
import { useAlert } from '@/hook/useAlert';
|
||||
import { buySellValues } from '@/constants';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Tooltip from '@/components/UI/Tooltip/Tooltip';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { ReactComponent as ConnectionIcon } from '@/assets/images/UI/connection.svg';
|
||||
import ConnectionIcon from '@/assets/images/UI/connection.svg';
|
||||
import { classes } from '@/utils/utils';
|
||||
import styles from './styles.module.scss';
|
||||
import { MatrixConnectionBadgeProps } from './types';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { ReactComponent as ClockIcon } from '@/assets/images/UI/clock_icon.svg';
|
||||
import { ReactComponent as UpIcon } from '@/assets/images/UI/up_icon.svg';
|
||||
import { ReactComponent as DownIcon } from '@/assets/images/UI/down_icon.svg';
|
||||
import { ReactComponent as VolumeIcon } from '@/assets/images/UI/volume_icon.svg';
|
||||
import ClockIcon from '@/assets/images/UI/clock_icon.svg';
|
||||
import UpIcon from '@/assets/images/UI/up_icon.svg';
|
||||
import DownIcon from '@/assets/images/UI/down_icon.svg';
|
||||
import VolumeIcon from '@/assets/images/UI/volume_icon.svg';
|
||||
import BackButton from '@/components/default/BackButton/BackButton';
|
||||
import { roundTo, notationToString, classes } from '@/utils/utils';
|
||||
import questionIcon from '@/assets/images/UI/question.svg';
|
||||
import questionIcon from '@/assets/images/UI/question.svg?url';
|
||||
import Image from 'next/image';
|
||||
import { useTour } from '@/store/guide-provider';
|
||||
import styles from './styles.module.scss';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
import '@/styles/globals.scss';
|
||||
import '@/zano_ui/src/styles/globals.scss';
|
||||
import '@/zano_ui/src/styles/variables.scss';
|
||||
import '@/styles/themes/light.scss';
|
||||
import '@/styles/themes/dark.scss';
|
||||
import Head from 'next/head';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import React, { Dispatch, SetStateAction, useCallback, useState } from 'react';
|
||||
import styles from '@/styles/Dex.module.scss';
|
||||
import { ReactComponent as SearchLogo } from '@/assets/images/UI/search_icon.svg';
|
||||
import { ReactComponent as RefreshIcon } from '@/assets/images/UI/refrash_small_icon.svg';
|
||||
import { ReactComponent as InfoSmallIcon } from '@/assets/images/UI/info_outlined.svg';
|
||||
import { ReactComponent as DropdownArrowIcon } from '@/assets/images/UI/dropdown_arrow_small.svg';
|
||||
import { ReactComponent as FilterIcon } from '@/assets/images/UI/filter_icon.svg';
|
||||
import SearchLogo from '@/assets/images/UI/search_icon.svg';
|
||||
import RefreshIcon from '@/assets/images/UI/refrash_small_icon.svg';
|
||||
import InfoSmallIcon from '@/assets/images/UI/info_outlined.svg';
|
||||
import DropdownArrowIcon from '@/assets/images/UI/dropdown_arrow_small.svg';
|
||||
import FilterIcon from '@/assets/images/UI/filter_icon.svg';
|
||||
import Input from '@/components/UI/Input/Input';
|
||||
import { Switch } from '@/components/UI/Switch/Switch';
|
||||
import { IconDropdown } from '@/components/UI/IconDropdown/IconDropdown';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import styles from '@/styles/Dex.module.scss';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import { ReactComponent as HistoryIcon } from '@/assets/images/UI/history_icon.svg';
|
||||
import HistoryIcon from '@/assets/images/UI/history_icon.svg';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import Link from 'next/link';
|
||||
|
|
@ -14,8 +13,7 @@ import { useInView } from 'react-intersection-observer';
|
|||
import Preloader from '@/components/UI/Preloader/Preloader';
|
||||
import { PairSortOption } from '@/interfaces/enum/pair';
|
||||
import PairsTable from '@/components/default/PairsTable/PairsTable';
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/constants';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
import DexHeader from './DexHeader/DexHeader';
|
||||
import PairsList from './pairs/PairsList/PairsList';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { nanoid } from 'nanoid';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { ReactComponent as DeleteIcon } from '@/assets/images/UI/delete.svg';
|
||||
import { ReactComponent as NoOffersIcon } from '@/assets/images/UI/no_offers.svg';
|
||||
import DeleteIcon from '@/assets/images/UI/delete.svg';
|
||||
import NoOffersIcon from '@/assets/images/UI/no_offers.svg';
|
||||
import EmptyLink from '@/components/UI/EmptyLink/EmptyLink';
|
||||
import { notationToString, toStandardDateString } from '@/utils/utils';
|
||||
import { cancelOrder, getUserOrders } from '@/utils/methods';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import styles from '@/styles/Orders.module.scss';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import PageTitle from '@/components/default/PageTitle/PageTitle';
|
||||
import HorizontalSelect from '@/components/UI/HorizontalSelect/HorizontalSelect';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
|
@ -14,6 +13,7 @@ import { UserOrderData } from '@/interfaces/responses/orders/GetUserOrdersRes';
|
|||
import PairValue from '@/interfaces/props/pages/dex/orders/PairValue';
|
||||
import DateState from '@/interfaces/common/DateState';
|
||||
import useUpdateUser from '@/hook/useUpdateUser';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
import OrdersTable from './OrdersTable/OrdersTable';
|
||||
|
||||
function Orders() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useContext } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { useRouter } from 'next/router';
|
||||
import { ReactComponent as ArrowRight } from '@/assets/images/UI/arrow_right.svg';
|
||||
import ArrowRight from '@/assets/images/UI/arrow_right.svg';
|
||||
import { Store } from '@/store/store-reducer';
|
||||
import PairData from '@/interfaces/common/PairData';
|
||||
import { getAssetIcon, notationToString, roundTo } from '@/utils/utils';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import styles from '@/styles/Trading.module.scss';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import HorizontalSelect from '@/components/UI/HorizontalSelect/HorizontalSelect';
|
||||
import { useCallback, useState } from 'react';
|
||||
|
|
@ -39,6 +38,7 @@ import useUpdateUser from '@/hook/useUpdateUser';
|
|||
import { GuideProvider } from '@/store/guide-provider';
|
||||
import { GetServerSidePropsContext } from 'next';
|
||||
import { TradingProps } from '@/interfaces/props/pages/dex/trading/TradingProps';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
|
||||
function Trading({
|
||||
initialOrders,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import React from 'react';
|
||||
import logoImg from '@/assets/images/UI/logo_block.svg';
|
||||
import logoImgWhite from '@/assets/images/UI/logo_block_dark.svg';
|
||||
import logoImg from '@/assets/images/UI/logo_block.svg?url';
|
||||
import logoImgWhite from '@/assets/images/UI/logo_block_dark.svg?url';
|
||||
import useAdvancedTheme from '@/hook/useTheme';
|
||||
import Image from 'next/image';
|
||||
import { ReactComponent as TelegramIcon } from '@/assets/images/UI/social/telegram.svg';
|
||||
import { ReactComponent as DisconrdIcon } from '@/assets/images/UI/social/discord.svg';
|
||||
import { ReactComponent as TwitterIcon } from '@/assets/images/UI/social/twitter.svg';
|
||||
import TelegramIcon from '@/assets/images/UI/social/telegram.svg';
|
||||
import DisconrdIcon from '@/assets/images/UI/social/discord.svg';
|
||||
import TwitterIcon from '@/assets/images/UI/social/twitter.svg';
|
||||
import Link from 'next/link';
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import EmptyLink from '@/components/UI/EmptyLink/EmptyLink';
|
||||
import { ReactComponent as ArrowIcon } from '@/assets/images/UI/arrow.svg';
|
||||
import { ReactComponent as NoOffersIcon } from '@/assets/images/UI/no_offers.svg';
|
||||
import ArrowIcon from '@/assets/images/UI/arrow.svg';
|
||||
import NoOffersIcon from '@/assets/images/UI/no_offers.svg';
|
||||
import ProfileWidget from '@/components/UI/ProfileWidget/ProfileWidget';
|
||||
import PairText from '@/components/UI/PairText/PairText';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import paginationArrowIcon from '@/assets/images/UI/pagination_arrow.svg';
|
||||
import paginationArrowIcon from '@/assets/images/UI/pagination_arrow.svg?url';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { nanoid } from 'nanoid';
|
||||
import PaginationProps from '@/interfaces/props/pages/p2p/components/Pagination/PaginationProps';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import styles from '@/styles/Home.module.scss';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Marketplace from '@/pages/p2p/components/Marketplace/Marketplace';
|
||||
import { ReactComponent as OffersIcon } from '@/assets/images/UI/offers.svg';
|
||||
import { ReactComponent as PlusIcon } from '@/assets/images/UI/plus.svg';
|
||||
import OffersIcon from '@/assets/images/UI/offers.svg';
|
||||
import PlusIcon from '@/assets/images/UI/plus.svg';
|
||||
import { useContext, useEffect, useState } from 'react';
|
||||
import { getStats } from '@/utils/methods';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
|
|
@ -17,6 +16,7 @@ import { GetServerSidePropsContext } from 'next';
|
|||
import HomeProps from '@/interfaces/props/pages/p2p/HomeProps';
|
||||
import OfferData from '@/interfaces/responses/offers/OfferData';
|
||||
import { useRouter } from 'next/router';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
|
||||
function Home(props: HomeProps) {
|
||||
const [offers, setOffers] = useState<OfferData[]>([]);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import styles from '@/styles/Process.module.scss';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
import ProcessContent from './components/ProcessContent/ProcessContent';
|
||||
|
||||
function Process() {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import Image from 'next/image';
|
||||
import { ReactComponent as DetailsIcon } from '@/assets/images/UI/walletsettings_icon.svg';
|
||||
import { ReactComponent as PlusIcon } from '@/assets/images/UI/plus.svg';
|
||||
import sendIcon from '@/assets/images/UI/send.svg';
|
||||
import crossSmallIcon from '@/assets/images/UI/cross_icon_small.svg';
|
||||
import DetailsIcon from '@/assets/images/UI/walletsettings_icon.svg';
|
||||
import PlusIcon from '@/assets/images/UI/plus.svg';
|
||||
import sendIcon from '@/assets/images/UI/send.svg?url';
|
||||
import crossSmallIcon from '@/assets/images/UI/cross_icon_small.svg?url';
|
||||
import Input from '@/components/UI/Input/Input';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import ProfileWidget from '@/components/UI/ProfileWidget/ProfileWidget';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import depositSentIcon from '@/assets/images/UI/deposit_sent.svg';
|
||||
import fundsConfirmedIcon from '@/assets/images/UI/funds_confirmed.svg';
|
||||
import offerCanceledIcon from '@/assets/images/UI/offer_canceled.svg';
|
||||
import depositSentIcon from '@/assets/images/UI/deposit_sent.svg?url';
|
||||
import fundsConfirmedIcon from '@/assets/images/UI/funds_confirmed.svg?url';
|
||||
import offerCanceledIcon from '@/assets/images/UI/offer_canceled.svg?url';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import Messenger from '@/pages/p2p/process/components/Messenger/Messenger';
|
||||
import PageTitle from '@/components/default/PageTitle/PageTitle';
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import EmptyLink from '@/components/UI/EmptyLink/EmptyLink';
|
||||
import DepositTitle from '@/components/UI/DepositTitle/DepositTitle';
|
||||
import { ReactComponent as NoOffersIcon } from '@/assets/images/UI/no_offers.svg';
|
||||
import { ReactComponent as NoChatsIcon } from '@/assets/images/UI/no_chats.svg';
|
||||
import NoOffersIcon from '@/assets/images/UI/no_offers.svg';
|
||||
import NoChatsIcon from '@/assets/images/UI/no_chats.svg';
|
||||
import { toStandardDateString } from '@/utils/utils';
|
||||
import ProfileWidget from '@/components/UI/ProfileWidget/ProfileWidget';
|
||||
import PairText from '@/components/UI/PairText/PairText';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { ReactComponent as DeleteIcon } from '@/assets/images/UI/delete.svg';
|
||||
import DeleteIcon from '@/assets/images/UI/delete.svg';
|
||||
import NotificationIndicator from '@/components/UI/NotificationIndicator/NotificationIndicator';
|
||||
import { useContext, useState } from 'react';
|
||||
import { Store } from '@/store/store-reducer';
|
||||
|
|
@ -156,7 +156,7 @@ function ProfileTable(props: ProfileTableProps) {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* {categoryState === "my-offers" &&
|
||||
{/* {categoryState === "my-offers" &&
|
||||
<Button
|
||||
className={styles.row__button__iconed}
|
||||
onClick={() => setPopupState(true)}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import styles from '@/styles/Profile.module.scss';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import Dropdown from '@/components/UI/Dropdown/Dropdown';
|
||||
import PageTitle from '@/components/default/PageTitle/PageTitle';
|
||||
import DateRangeSelector from '@/components/UI/DateRangeSelector/DateRangeSelector';
|
||||
|
|
@ -12,6 +11,7 @@ import CategoriesState from '@/interfaces/states/pages/p2p/profile/CategoriesSta
|
|||
import FiltersState, { BuySell } from '@/interfaces/states/pages/p2p/profile/FiltersState';
|
||||
import { UserChatData } from '@/interfaces/responses/user/GetUserRes';
|
||||
import OffersStateElement from '@/interfaces/states/pages/p2p/profile/OffersState';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
import ProfileTable from './ProfileTable/ProfileTable';
|
||||
|
||||
function Profile() {
|
||||
|
|
@ -201,9 +201,9 @@ function Profile() {
|
|||
setValue={(e) => setFilters({ ...filters, date: e })}
|
||||
/>
|
||||
</div>
|
||||
{/* <Offers
|
||||
extended
|
||||
withEditor={categoryState.code === "my-offers"}
|
||||
{/* <Offers
|
||||
extended
|
||||
withEditor={categoryState.code === "my-offers"}
|
||||
offers={filteredOffers}
|
||||
categoryState={categoryState.code}
|
||||
/> */}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
import styles from '@/styles/Swap.module.scss';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import MainPageTitle from '@/components/default/MainPageTitle/MainPageTitle';
|
||||
import { ReactComponent as HistoryIcon } from '@/assets/images/UI/history_icon.svg';
|
||||
import { ReactComponent as ExchangeIcon } from '@/assets/images/UI/change_icon.svg';
|
||||
import zanoWhiteIcon from '@/assets/images/UI/zano_white.svg';
|
||||
import tickIcon from '@/assets/images/UI/tick_icon.svg';
|
||||
import HistoryIcon from '@/assets/images/UI/history_icon.svg';
|
||||
import ExchangeIcon from '@/assets/images/UI/change_icon.svg';
|
||||
import zanoWhiteIcon from '@/assets/images/UI/zano_white.svg?url';
|
||||
import tickIcon from '@/assets/images/UI/tick_icon.svg?url';
|
||||
import Link from 'next/link';
|
||||
import Button from '@/components/UI/Button/Button';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
|
@ -19,6 +18,7 @@ import CurvePairChart from '@/components/UI/CurvePairChart/CurvePairChart';
|
|||
import SwapItemProps from '@/interfaces/props/pages/swap/SwapItemProps';
|
||||
import CurrencyRow from '@/interfaces/common/CurrencyRow';
|
||||
import { useRouter } from 'next/router';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
|
||||
function Swap() {
|
||||
const { state } = useContext(Store);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import styles from '@/styles/User.module.scss';
|
||||
import Header from '@/components/default/Header/Header';
|
||||
import Footer from '@/components/default/Footer/Footer';
|
||||
import infoBlueIcon from '@/assets/images/UI/info_blue.svg';
|
||||
import zanoIcon from '@/assets/images/UI/zano.svg';
|
||||
import infoBlueIcon from '@/assets/images/UI/info_blue.svg?url';
|
||||
import zanoIcon from '@/assets/images/UI/zano.svg?url';
|
||||
import Offers from '@/components/default/Offers/Offers';
|
||||
import BackButton from '@/components/default/BackButton/BackButton';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { Footer } from '@/zano_ui/src';
|
||||
|
||||
function User() {
|
||||
// const userInfo = {
|
||||
|
|
|
|||
|
|
@ -148,17 +148,17 @@ h6 {
|
|||
}
|
||||
|
||||
svg {
|
||||
&:not(.stroked) {
|
||||
* {
|
||||
fill: var(--font-main-color);
|
||||
}
|
||||
// &:not(.stroked) {
|
||||
// * {
|
||||
// fill: var(--font-main-color);
|
||||
// }
|
||||
|
||||
&.dimmed {
|
||||
* {
|
||||
fill: var(--font-dimmed-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
// &.dimmed {
|
||||
// * {
|
||||
// fill: var(--font-dimmed-color);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
&.stroked {
|
||||
* {
|
||||
|
|
|
|||
16
src/svg.d.ts
vendored
16
src/svg.d.ts
vendored
|
|
@ -1,7 +1,11 @@
|
|||
declare module '*.svg' {
|
||||
import React = require('react');
|
||||
|
||||
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
|
||||
const src: string;
|
||||
export default src;
|
||||
declare module '*.svg?url' {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
import * as React from 'react';
|
||||
|
||||
const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
|
||||
export default ReactComponent;
|
||||
}
|
||||
|
|
|
|||
1
submodules/zano_ui
Submodule
1
submodules/zano_ui
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0d2ed657a1a7fa65727b458ccca5897ad0424807
|
||||
|
|
@ -2,7 +2,8 @@
|
|||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
"@/*": ["./src/*"],
|
||||
"@/zano_ui/*": ["./submodules/zano_ui/*"]
|
||||
},
|
||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||
/* Projects */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue