mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
reorg Form components one level up
This commit is contained in:
parent
c177657f87
commit
82951548ef
@ -1,5 +1,5 @@
|
|||||||
import { Logger } from '@oceanprotocol/lib'
|
import { Logger } from '@oceanprotocol/lib'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
import { PriceList, getAssetsPriceList } from './subgraph'
|
import { PriceList, getAssetsPriceList } from './subgraph'
|
||||||
import axios, { CancelToken, AxiosResponse } from 'axios'
|
import axios, { CancelToken, AxiosResponse } from 'axios'
|
||||||
import { OrdersData_tokenOrders as OrdersData } from '../@types/apollo/OrdersData'
|
import { OrdersData_tokenOrders as OrdersData } from '../@types/apollo/OrdersData'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.display {
|
.display {
|
||||||
composes: selection from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: selection from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.display [class*='loaderWrap'] {
|
.display [class*='loaderWrap'] {
|
||||||
@ -7,14 +7,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scroll {
|
.scroll {
|
||||||
composes: scroll from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: scroll from '@shared/FormFields/AssetSelection.module.css';
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
composes: row from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: row from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.row:last-child {
|
.row:last-child {
|
||||||
@ -35,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
composes: title from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: title from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover:hover {
|
.hover:hover {
|
||||||
@ -43,7 +43,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
composes: price from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: price from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.price [class*='symbol'] {
|
.price [class*='symbol'] {
|
||||||
@ -51,9 +51,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.did {
|
.did {
|
||||||
composes: did from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: did from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
composes: empty from '@shared/Form/FormFields/AssetSelection.module.css';
|
composes: empty from '@shared/FormFields/AssetSelection.module.css';
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import Link from 'next/link'
|
|||||||
import PriceUnit from '@shared/Price/PriceUnit'
|
import PriceUnit from '@shared/Price/PriceUnit'
|
||||||
import Loader from '@shared/atoms/Loader'
|
import Loader from '@shared/atoms/Loader'
|
||||||
import styles from './AssetComputeList.module.css'
|
import styles from './AssetComputeList.module.css'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
|
|
||||||
function Empty() {
|
function Empty() {
|
||||||
return <div className={styles.empty}>No assets found.</div>
|
return <div className={styles.empty}>No assets found.</div>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
.input {
|
|
||||||
composes: input from '@shared/Form/Input/InputElement.module.css';
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
import React, { ReactElement, useState, FormEvent, ChangeEvent } from 'react'
|
import React, { ReactElement, useState, FormEvent, ChangeEvent } from 'react'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import { Field } from 'formik'
|
import { Field } from 'formik'
|
||||||
import styles from './AdvancedSettings.module.css'
|
import styles from './AdvancedSettings.module.css'
|
@ -58,11 +58,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.radio {
|
.radio {
|
||||||
composes: radio from '@shared/Form/Input/InputElement.module.css';
|
composes: radio from '@shared/FormInput/InputElement.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
composes: checkbox from '@shared/Form/Input/InputElement.module.css';
|
composes: checkbox from '@shared/FormInput/InputElement.module.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
@ -4,7 +4,7 @@ import slugify from 'slugify'
|
|||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import PriceUnit from '@shared/Price/PriceUnit'
|
import PriceUnit from '@shared/Price/PriceUnit'
|
||||||
import External from '@images/external.svg'
|
import External from '@images/external.svg'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import Loader from '@shared/atoms/Loader'
|
import Loader from '@shared/atoms/Loader'
|
||||||
import styles from './AssetSelection.module.css'
|
import styles from './AssetSelection.module.css'
|
||||||
|
|
@ -3,7 +3,7 @@ import { useField } from 'formik'
|
|||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
import CustomInput from './URLInput/Input'
|
import CustomInput from './URLInput/Input'
|
||||||
import { useOcean } from '@context/Ocean'
|
import { useOcean } from '@context/Ocean'
|
||||||
import { InputProps } from '@shared/Form/Input'
|
import { InputProps } from '@shared/FormInput'
|
||||||
|
|
||||||
export default function CustomProvider(props: InputProps): ReactElement {
|
export default function CustomProvider(props: InputProps): ReactElement {
|
||||||
const [field, meta, helpers] = useField(props.name)
|
const [field, meta, helpers] = useField(props.name)
|
@ -1,6 +1,6 @@
|
|||||||
import { useField } from 'formik'
|
import { useField } from 'formik'
|
||||||
import React, { ReactElement, useEffect } from 'react'
|
import React, { ReactElement, useEffect } from 'react'
|
||||||
import { InputProps } from '@shared/Form/Input'
|
import { InputProps } from '@shared/FormInput'
|
||||||
import Logo from '@images/logo.svg'
|
import Logo from '@images/logo.svg'
|
||||||
import RefreshName from './RefreshName'
|
import RefreshName from './RefreshName'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
@ -3,7 +3,7 @@ import { useField } from 'formik'
|
|||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
import FileInfo from './Info'
|
import FileInfo from './Info'
|
||||||
import CustomInput from '../URLInput/Input'
|
import CustomInput from '../URLInput/Input'
|
||||||
import { InputProps } from '@shared/Form/Input'
|
import { InputProps } from '@shared/FormInput'
|
||||||
import { getFileInfo } from '@utils/provider'
|
import { getFileInfo } from '@utils/provider'
|
||||||
import { useWeb3 } from '@context/Web3'
|
import { useWeb3 } from '@context/Web3'
|
||||||
import { getOceanConfig } from '@utils/ocean'
|
import { getOceanConfig } from '@utils/ocean'
|
@ -1,4 +1,4 @@
|
|||||||
import { InputProps } from '@shared/Form/Input'
|
import { InputProps } from '@shared/FormInput'
|
||||||
import { generateNftOptions } from '@utils/nft'
|
import { generateNftOptions } from '@utils/nft'
|
||||||
import { useField } from 'formik'
|
import { useField } from 'formik'
|
||||||
import React, { ReactElement, useEffect } from 'react'
|
import React, { ReactElement, useEffect } from 'react'
|
@ -0,0 +1,3 @@
|
|||||||
|
.input {
|
||||||
|
composes: input from '@shared/FormInput/InputElement.module.css';
|
||||||
|
}
|
@ -3,7 +3,7 @@ import Button from '@shared/atoms/Button'
|
|||||||
import { FieldInputProps, useField } from 'formik'
|
import { FieldInputProps, useField } from 'formik'
|
||||||
import Loader from '@shared/atoms/Loader'
|
import Loader from '@shared/atoms/Loader'
|
||||||
import styles from './Input.module.css'
|
import styles from './Input.module.css'
|
||||||
import InputGroup from '@shared/Form/Input/InputGroup'
|
import InputGroup from '@shared/FormInput/InputGroup'
|
||||||
|
|
||||||
export default function URLInput({
|
export default function URLInput({
|
||||||
submitText,
|
submitText,
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react'
|
import React, { ReactElement, useEffect, useState } from 'react'
|
||||||
import styles from './AlgorithmDatasetsListForCompute.module.css'
|
import styles from './AlgorithmDatasetsListForCompute.module.css'
|
||||||
import { getAlgorithmDatasetsForCompute } from '@utils/aquarius'
|
import { getAlgorithmDatasetsForCompute } from '@utils/aquarius'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
import AssetComputeList from '@shared/AssetList/AssetComputeList'
|
import AssetComputeList from '@shared/AssetList/AssetComputeList'
|
||||||
import { useAsset } from '@context/Asset'
|
import { useAsset } from '@context/Asset'
|
||||||
import { useCancelToken } from '@hooks/useCancelToken'
|
import { useCancelToken } from '@hooks/useCancelToken'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react'
|
import React, { ReactElement, useEffect, useState } from 'react'
|
||||||
import styles from './FormComputeDataset.module.css'
|
import styles from './FormComputeDataset.module.css'
|
||||||
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
import { compareAsBN } from '@utils/numbers'
|
import { compareAsBN } from '@utils/numbers'
|
||||||
import ButtonBuy from '@shared/ButtonBuy'
|
import ButtonBuy from '@shared/ButtonBuy'
|
||||||
import PriceOutput from './PriceOutput'
|
import PriceOutput from './PriceOutput'
|
||||||
|
@ -26,7 +26,7 @@ import FormStartComputeDataset from './FormComputeDataset'
|
|||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
import SuccessConfetti from '@shared/SuccessConfetti'
|
import SuccessConfetti from '@shared/SuccessConfetti'
|
||||||
import { getServiceByName, secondsToString } from '@utils/ddo'
|
import { getServiceByName, secondsToString } from '@utils/ddo'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
import AlgorithmDatasetsListForCompute from './AlgorithmDatasetsListForCompute'
|
import AlgorithmDatasetsListForCompute from './AlgorithmDatasetsListForCompute'
|
||||||
import { getPreviousOrders, getPrice } from '@utils/subgraph'
|
import { getPreviousOrders, getPrice } from '@utils/subgraph'
|
||||||
import AssetActionHistoryTable from '../AssetActionHistoryTable'
|
import AssetActionHistoryTable from '../AssetActionHistoryTable'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react'
|
import React, { ReactElement, useEffect, useState } from 'react'
|
||||||
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
||||||
import Input, { InputProps } from '@shared/Form/Input'
|
import Input, { InputProps } from '@shared/FormInput'
|
||||||
import { AssetSelectionAsset } from '@shared/Form/FormFields/AssetSelection'
|
import { AssetSelectionAsset } from '@shared/FormFields/AssetSelection'
|
||||||
import stylesIndex from './index.module.css'
|
import stylesIndex from './index.module.css'
|
||||||
import styles from './FormEditMetadata.module.css'
|
import styles from './FormEditMetadata.module.css'
|
||||||
import {
|
import {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ChangeEvent, ReactElement } from 'react'
|
import React, { ChangeEvent, ReactElement } from 'react'
|
||||||
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
import { Field, Form, FormikContextType, useFormikContext } from 'formik'
|
||||||
import { useOcean } from '@context/Ocean'
|
import { useOcean } from '@context/Ocean'
|
||||||
import Input, { InputProps } from '@shared/Form/Input'
|
import Input, { InputProps } from '@shared/FormInput'
|
||||||
import FormActions from './FormActions'
|
import FormActions from './FormActions'
|
||||||
import styles from './FormEditMetadata.module.css'
|
import styles from './FormEditMetadata.module.css'
|
||||||
import { FormPublishData } from '../../../Publish/_types'
|
import { FormPublishData } from '../../../Publish/_types'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ChangeEvent, ReactElement, useEffect } from 'react'
|
import React, { ChangeEvent, ReactElement, useEffect } from 'react'
|
||||||
import styles from './FormAdd.module.css'
|
import styles from './FormAdd.module.css'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import {
|
import {
|
||||||
Field,
|
Field,
|
||||||
FieldInputProps,
|
FieldInputProps,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { FormikContextType, useFormikContext } from 'formik'
|
import { FormikContextType, useFormikContext } from 'formik'
|
||||||
import React, { ReactElement, useEffect, useState } from 'react'
|
import React, { ReactElement, useEffect, useState } from 'react'
|
||||||
import { FormAddLiquidity } from '.'
|
import { FormAddLiquidity } from '.'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Token from '../Token'
|
import Token from '../Token'
|
||||||
import styles from './Output.module.css'
|
import styles from './Output.module.css'
|
||||||
import Decimal from 'decimal.js'
|
import Decimal from 'decimal.js'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.coinSelect {
|
.coinSelect {
|
||||||
composes: select from '@shared/Form/Input/InputElement.module.css';
|
composes: select from '@shared/FormInput/InputElement.module.css';
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
font-weight: var(--font-weight-base);
|
font-weight: var(--font-weight-base);
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -12,12 +12,12 @@ import { toast } from 'react-toastify'
|
|||||||
import Actions from './Actions'
|
import Actions from './Actions'
|
||||||
import { Logger } from '@oceanprotocol/lib'
|
import { Logger } from '@oceanprotocol/lib'
|
||||||
import Token from './Token'
|
import Token from './Token'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import { getMaxPercentRemove } from './utils'
|
import { getMaxPercentRemove } from './utils'
|
||||||
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce'
|
||||||
import UserLiquidity from '../UserLiquidity'
|
import UserLiquidity from '../UserLiquidity'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import { useOcean } from '@context/Ocean'
|
import { useOcean } from '@context/Ocean'
|
||||||
import { useWeb3 } from '@context/Web3'
|
import { useWeb3 } from '@context/Web3'
|
||||||
import Decimal from 'decimal.js'
|
import Decimal from 'decimal.js'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { FormikContextType, useFormikContext } from 'formik'
|
import { FormikContextType, useFormikContext } from 'formik'
|
||||||
import React, { ChangeEvent, ReactElement } from 'react'
|
import React, { ChangeEvent, ReactElement } from 'react'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import Tooltip from '@shared/atoms/Tooltip'
|
import Tooltip from '@shared/atoms/Tooltip'
|
||||||
import styles from './Slippage.module.css'
|
import styles from './Slippage.module.css'
|
||||||
import { FormTradeData } from './_types'
|
import { FormTradeData } from './_types'
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
FormikContextType,
|
FormikContextType,
|
||||||
useFormikContext
|
useFormikContext
|
||||||
} from 'formik'
|
} from 'formik'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import { useOcean } from '@context/Ocean'
|
import { useOcean } from '@context/Ocean'
|
||||||
import { FormTradeData, TradeItem } from './_types'
|
import { FormTradeData, TradeItem } from './_types'
|
||||||
|
@ -7,7 +7,7 @@ import React, {
|
|||||||
ReactElement
|
ReactElement
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import SearchIcon from '@images/search.svg'
|
import SearchIcon from '@images/search.svg'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import styles from './SearchBar.module.css'
|
import styles from './SearchBar.module.css'
|
||||||
import { addExistingParamsToUrl } from '../Search/utils'
|
import { addExistingParamsToUrl } from '../Search/utils'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import React, { ReactElement, ChangeEvent } from 'react'
|
import React, { ReactElement, ChangeEvent } from 'react'
|
||||||
import { DarkMode } from 'use-dark-mode'
|
import { DarkMode } from 'use-dark-mode'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Label from '@shared/Form/Input/Label'
|
import Label from '@shared/FormInput/Label'
|
||||||
import Moon from '@images/moon.svg'
|
import Moon from '@images/moon.svg'
|
||||||
import Sun from '@images/sun.svg'
|
import Sun from '@images/sun.svg'
|
||||||
import BoxSelection, {
|
import BoxSelection, {
|
||||||
BoxSelectionOption
|
BoxSelectionOption
|
||||||
} from '@shared/Form/FormFields/BoxSelection'
|
} from '@shared/FormFields/BoxSelection'
|
||||||
import styles from './Appearance.module.css'
|
import styles from './Appearance.module.css'
|
||||||
|
|
||||||
export default function Appearance({
|
export default function Appearance({
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactElement, ChangeEvent } from 'react'
|
import React, { ReactElement, ChangeEvent } from 'react'
|
||||||
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
||||||
import { useUserPreferences } from '@context/UserPreferences'
|
import { useUserPreferences } from '@context/UserPreferences'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
|
|
||||||
export default function Currency(): ReactElement {
|
export default function Currency(): ReactElement {
|
||||||
const { currency, setCurrency } = useUserPreferences()
|
const { currency, setCurrency } = useUserPreferences()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import { useUserPreferences } from '@context/UserPreferences'
|
import { useUserPreferences } from '@context/UserPreferences'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
|
|
||||||
export default function Debug(): ReactElement {
|
export default function Debug(): ReactElement {
|
||||||
const { debug, setDebug } = useUserPreferences()
|
const { debug, setDebug } = useUserPreferences()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.radioWrap {
|
.radioWrap {
|
||||||
composes: radioWrap from '@shared/Form/Input/InputElement.module.css';
|
composes: radioWrap from '@shared/FormInput/InputElement.module.css';
|
||||||
padding: calc(var(--spacer) / 6) calc(var(--spacer) / 3);
|
padding: calc(var(--spacer) / 6) calc(var(--spacer) / 3);
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
@ -9,14 +9,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
composes: checkbox from '@shared/Form/Input/InputElement.module.css';
|
composes: checkbox from '@shared/FormInput/InputElement.module.css';
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
margin-right: calc(var(--spacer) / 3);
|
margin-right: calc(var(--spacer) / 3);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radioLabel {
|
.radioLabel {
|
||||||
composes: radioLabel from '@shared/Form/Input/InputElement.module.css';
|
composes: radioLabel from '@shared/FormInput/InputElement.module.css';
|
||||||
font-weight: var(--font-weight-base);
|
font-weight: var(--font-weight-base);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import Label from '@shared/Form/Input/Label'
|
import Label from '@shared/FormInput/Label'
|
||||||
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Tooltip from '@shared/atoms/Tooltip'
|
import Tooltip from '@shared/atoms/Tooltip'
|
||||||
import Caret from '@images/caret.svg'
|
import Caret from '@images/caret.svg'
|
||||||
import Network from '@images/network.svg'
|
import Network from '@images/network.svg'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import { useUserPreferences } from '@context/UserPreferences'
|
import { useUserPreferences } from '@context/UserPreferences'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
|
|
||||||
export default function TokenApproval(): ReactElement {
|
export default function TokenApproval(): ReactElement {
|
||||||
const { infiniteApproval, setInfiniteApproval } = useUserPreferences()
|
const { infiniteApproval, setInfiniteApproval } = useUserPreferences()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ChangeEvent, ReactElement, useEffect, useState } from 'react'
|
import React, { ChangeEvent, ReactElement, useEffect, useState } from 'react'
|
||||||
import { CookieConsentStatus, useConsent } from '@context/CookieConsent'
|
import { CookieConsentStatus, useConsent } from '@context/CookieConsent'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import Markdown from '@shared/Markdown'
|
import Markdown from '@shared/Markdown'
|
||||||
import styles from './CookieModule.module.css'
|
import styles from './CookieModule.module.css'
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { ListItem } from '@shared/atoms/Lists'
|
|||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import { useOcean } from '@context/Ocean'
|
import { useOcean } from '@context/Ocean'
|
||||||
import styles from './Results.module.css'
|
import styles from './Results.module.css'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import content from '../../../../../content/pages/history.json'
|
import content from '../../../../../content/pages/history.json'
|
||||||
|
|
||||||
export default function Results({
|
export default function Results({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { BoxSelectionOption } from '@shared/Form/FormFields/BoxSelection'
|
import { BoxSelectionOption } from '@shared/FormFields/BoxSelection'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import { Field, useFormikContext } from 'formik'
|
import { Field, useFormikContext } from 'formik'
|
||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import content from '../../../../content/publish/form.json'
|
import content from '../../../../content/publish/form.json'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import styles from './Coin.module.css'
|
import styles from './Coin.module.css'
|
||||||
import InputElement from '@shared/Form/Input/InputElement'
|
import InputElement from '@shared/FormInput/InputElement'
|
||||||
import Logo from '@images/logo.svg'
|
import Logo from '@images/logo.svg'
|
||||||
import Conversion from '@shared/Price/Conversion'
|
import Conversion from '@shared/Price/Conversion'
|
||||||
import { DataTokenOptions } from '@utils/datatokens'
|
import { DataTokenOptions } from '@utils/datatokens'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { ReactElement, useEffect, useState } from 'react'
|
import React, { ReactElement, useEffect, useState } from 'react'
|
||||||
import Alert from '@shared/atoms/Alert'
|
import Alert from '@shared/atoms/Alert'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Tooltip from '@shared/atoms/Tooltip'
|
import Tooltip from '@shared/atoms/Tooltip'
|
||||||
import Coin from './Coin'
|
import Coin from './Coin'
|
||||||
import styles from './Dynamic.module.css'
|
import styles from './Dynamic.module.css'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { FieldMetaProps } from 'formik'
|
import { FieldMetaProps } from 'formik'
|
||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import stylesInput from '@shared/Form/Input/index.module.css'
|
import stylesInput from '@shared/FormInput/index.module.css'
|
||||||
|
|
||||||
export default function Error({
|
export default function Error({
|
||||||
meta
|
meta
|
||||||
|
@ -2,7 +2,7 @@ import React, { ReactElement } from 'react'
|
|||||||
import Tooltip from '@shared/atoms/Tooltip'
|
import Tooltip from '@shared/atoms/Tooltip'
|
||||||
import styles from './Fees.module.css'
|
import styles from './Fees.module.css'
|
||||||
import { useField } from 'formik'
|
import { useField } from 'formik'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import Error from './Error'
|
import Error from './Error'
|
||||||
|
|
||||||
const Default = ({
|
const Default = ({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Price from './Price'
|
import Price from './Price'
|
||||||
import Fees from './Fees'
|
import Fees from './Fees'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import FormHelp from '@shared/Form/Input/Help'
|
import FormHelp from '@shared/FormInput/Help'
|
||||||
import Price from './Price'
|
import Price from './Price'
|
||||||
|
|
||||||
export default function Free({ content }: { content: any }): ReactElement {
|
export default function Free({ content }: { content: any }): ReactElement {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import Conversion from '@shared/Price/Conversion'
|
import Conversion from '@shared/Price/Conversion'
|
||||||
import { useField, useFormikContext } from 'formik'
|
import { useField, useFormikContext } from 'formik'
|
||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import Error from './Error'
|
import Error from './Error'
|
||||||
import PriceUnit from '@shared/Price/PriceUnit'
|
import PriceUnit from '@shared/Price/PriceUnit'
|
||||||
import styles from './Price.module.css'
|
import styles from './Price.module.css'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import Input from '@shared/Form/Input'
|
import Input from '@shared/FormInput'
|
||||||
import { Field, useFormikContext } from 'formik'
|
import { Field, useFormikContext } from 'formik'
|
||||||
import React, { ReactElement, useEffect } from 'react'
|
import React, { ReactElement, useEffect } from 'react'
|
||||||
import IconDownload from '@images/download.svg'
|
import IconDownload from '@images/download.svg'
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sortLabel {
|
.sortLabel {
|
||||||
composes: label from '@shared/Form/Input/Label.module.css';
|
composes: label from '@shared/FormInput/Label.module.css';
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: calc(var(--spacer) / 2);
|
margin-left: calc(var(--spacer) / 2);
|
||||||
margin-right: calc(var(--spacer) / 1.5);
|
margin-right: calc(var(--spacer) / 1.5);
|
||||||
|
Loading…
Reference in New Issue
Block a user