diff --git a/package.json b/package.json index 5ae2516..b81ab7f 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "next": "12.0.7", "react": "17.0.2", "react-dom": "17.0.2", + "react-gauge-chart": "^0.4.0", "react-redux": "^7.2.6", "styled-components": "^5.3.3" }, diff --git a/public/images/logo_icon.svg b/public/images/logo_icon.svg new file mode 100644 index 0000000..4f7b0e3 --- /dev/null +++ b/public/images/logo_icon.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/CryptoInput/index.tsx b/src/components/CryptoInput/index.tsx index c720933..fc48207 100644 --- a/src/components/CryptoInput/index.tsx +++ b/src/components/CryptoInput/index.tsx @@ -1,4 +1,5 @@ import * as React from 'react' +import Image from 'next/image' import { Box, Text, TextInput, Button } from 'grommet' import * as t from './types' @@ -89,6 +90,20 @@ export const CryptoInput: React.FC = ({ alignSelf="end" margin="auto 0" label={currency} + color="background-front" + icon={ + Currency Icon + } onClick={() => { const newCurrency = currency === t.CurrencyTypeEnum.NEAR diff --git a/src/components/CryptoInput/types.ts b/src/components/CryptoInput/types.ts index 39349ef..0d8b01d 100644 --- a/src/components/CryptoInput/types.ts +++ b/src/components/CryptoInput/types.ts @@ -8,6 +8,6 @@ export interface CryptoInputPropsType { } export enum CurrencyTypeEnum { - NEAR = 'Near', - QUID = 'qUid', + NEAR = 'NEAR', + QUID = 'QUID', } diff --git a/src/components/SwapInput/index.tsx b/src/components/SwapInput/index.tsx index 8ec7236..9ec31a1 100644 --- a/src/components/SwapInput/index.tsx +++ b/src/components/SwapInput/index.tsx @@ -1,4 +1,5 @@ import * as React from 'react' +import Image from 'next/image' import { Box, Button, Text, TextInput } from 'grommet' import * as t from './types' @@ -97,11 +98,25 @@ export const SwapInput: React.FC = ({ />