diff --git a/src/components/input/index.ts b/src/components/input/index.ts index 84336eab..5a1c548c 100644 --- a/src/components/input/index.ts +++ b/src/components/input/index.ts @@ -1,2 +1,2 @@ -export { default as AutosizeInput } from './autosize-input'; +export { default as Input } from './input'; export { default as TextareaInput } from './textarea-input'; diff --git a/src/components/input/autosize-input.module.scss b/src/components/input/input.module.scss similarity index 100% rename from src/components/input/autosize-input.module.scss rename to src/components/input/input.module.scss diff --git a/src/components/input/autosize-input.tsx b/src/components/input/input.tsx similarity index 96% rename from src/components/input/autosize-input.tsx rename to src/components/input/input.tsx index ee9f3118..d754636e 100644 --- a/src/components/input/autosize-input.tsx +++ b/src/components/input/input.tsx @@ -2,7 +2,7 @@ import { ChangeEventHandler } from 'react'; import classNames from 'classnames'; import AutosizeInput from 'react-input-autosize'; import NumberFormat from 'react-number-format'; -import styles from './autosize-input.module.scss'; +import styles from './input.module.scss'; type Props = { onChange: ChangeEventHandler; diff --git a/src/pages/dashboard/forms/token-amount-form.tsx b/src/pages/dashboard/forms/token-amount-form.tsx index 5f191feb..9d13daea 100644 --- a/src/pages/dashboard/forms/token-amount-form.tsx +++ b/src/pages/dashboard/forms/token-amount-form.tsx @@ -1,7 +1,7 @@ import { BigNumber } from 'ethers'; import { useState } from 'react'; import { ModalFooter, ModalHeader } from '../../../components/modal'; -import { AutosizeInput } from '../../../components/input'; +import { Input } from '../../../components/input'; import Button from '../../../components/button'; import { formatApi3, parseApi3, messages } from '../../../utils'; import styles from './forms.module.scss'; @@ -52,7 +52,7 @@ const TokenAmountForm = (props: Props) => {
- onChange(e.target.value)} autoFocus /> + onChange(e.target.value)} autoFocus /> {maxValue && ( diff --git a/src/pages/proposals/forms/delegate/delegate-form.tsx b/src/pages/proposals/forms/delegate/delegate-form.tsx index c078a138..512ac110 100644 --- a/src/pages/proposals/forms/delegate/delegate-form.tsx +++ b/src/pages/proposals/forms/delegate/delegate-form.tsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import classNames from 'classnames'; import Button from '../../../../components/button'; -import { AutosizeInput } from '../../../../components/input'; +import { Input } from '../../../../components/input'; import { ModalFooter, ModalHeader } from '../../../../components/modal'; import { useChainData } from '../../../../chain-data'; import { useApi3Pool } from '../../../../contracts'; @@ -68,7 +68,7 @@ const DelegateVotesForm = (props: Props) => { Delegate my votes to:
-