Commit a9d1521a authored by tom's avatar tom

use customized Input in modal

parent 5fb2a569
......@@ -15,6 +15,8 @@ import {
Text,
Grid,
GridItem,
FormControl,
FormLabel,
} from '@chakra-ui/react';
import type { TWatchlistItem } from '../../data/watchlist';
......@@ -61,18 +63,14 @@ const AddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
<Text lineHeight="30px" marginBottom="40px">
An Email notification can be sent to you when an address on your watch list sends or receives any transactions.
</Text>
<Input
placeholder="Address (0x...)*"
marginBottom="20px"
onChange={ onAddressChange }
value={ address || '' }
/>
<Input
placeholder="Private tag (max 35 characters)*"
marginBottom="30px"
onChange={ onTagChange }
value={ tag || '' }
/>
<FormControl variant="floating" id="address" marginBottom="20px" isRequired>
<Input placeholder=" " onChange={ onAddressChange } value={ address || '' }/>
<FormLabel>Address (0x...)</FormLabel>
</FormControl>
<FormControl variant="floating" id="tag" marginBottom="30px" isRequired>
<Input placeholder=" " onChange={ onTagChange } value={ tag || '' }/>
<FormLabel>Private tag (max 35 characters)</FormLabel>
</FormControl>
<Text color="gray.600" fontSize="14px" marginBottom="32px">
Please select what types of notifications you will receive:
</Text>
......
import React from 'react';
import type { NextPage } from 'next';
import { Center, FormControl, Input, FormLabel } from '@chakra-ui/react';
import { Center } from '@chakra-ui/react';
import Page from '../components/Page/Page';
const Home: NextPage = () => {
return (
<Page>
<Center h="100%">
<FormControl variant="floating" id="address" isRequired>
{ /* Placeholder should be present */ }
<Input placeholder=" "/>
{ /* It is important that the Label comes after the Control due to css selectors */ }
<FormLabel>Address</FormLabel>
</FormControl>
Home Page
</Center>
</Page>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment