@@ -31,8 +31,6 @@ import Dot from "./Dot";
3131import { useWeb3React } from "@web3-react/core" ;
3232import { ChangeChainLink } from "./ChangeChainLink" ;
3333
34- export type PaymentChain = "mainnet" | "xdai" | "matic" | "rinkeby" ;
35-
3634export interface IFormData {
3735 amount ?: number ;
3836 payer ?: string ;
@@ -53,7 +51,7 @@ export interface IProps {
5351 loading : boolean ;
5452}
5553
56- const useHeaderStyles = makeStyles ( theme => ( {
54+ const useHeaderStyles = makeStyles ( ( theme ) => ( {
5755 container : {
5856 height : 124 ,
5957 width : "100%" ,
@@ -135,7 +133,7 @@ const Header = ({
135133 ) ;
136134} ;
137135
138- const useBodyStyles = makeStyles ( theme => ( {
136+ const useBodyStyles = makeStyles ( ( theme ) => ( {
139137 container : {
140138 minHeight : 290 ,
141139 width : "100%" ,
@@ -192,7 +190,7 @@ const CurrencyPicker = ({ className }: { className?: string }) => {
192190 error = { Boolean ( meta . error ) }
193191 helperText = { Boolean ( meta . error ) ? meta . error : " " }
194192 SelectProps = { {
195- renderValue : val => {
193+ renderValue : ( val ) => {
196194 const currency = currencyManager . fromId ( val as string ) ! ;
197195 return (
198196 < CurrencyPickerItem
@@ -208,7 +206,7 @@ const CurrencyPicker = ({ className }: { className?: string }) => {
208206 } }
209207 >
210208 { getCurrenciesForPicker ( {
211- currencyFilter : ( { network } ) => chainId === 4 || network !== "rinkeby " ,
209+ currencyFilter : ( { network } ) => chainId === 5 || network !== "goerli " ,
212210 } ) }
213211 </ TextField >
214212 ) ;
@@ -309,9 +307,8 @@ const Footer = ({
309307 account ?: string ;
310308 disabled ?: boolean ;
311309} ) => {
312- const { submitForm, isValid, values, isSubmitting } = useFormikContext <
313- IFormData
314- > ( ) ;
310+ const { submitForm, isValid, values, isSubmitting } =
311+ useFormikContext < IFormData > ( ) ;
315312 return (
316313 < >
317314 < Hidden xsDown >
@@ -344,7 +341,7 @@ export const schema = Yup.object().shape<IFormData>({
344341 payer : Yup . string ( ) . test (
345342 "is-valid-recipient" ,
346343 "Please enter a valid ENS or ETH address" ,
347- async function ( value : string ) {
344+ async function ( value : string ) {
348345 return (
349346 ! value ||
350347 CurrencyManager . validateAddress ( value , { type : "ETH" } as any ) ||
@@ -356,14 +353,14 @@ export const schema = Yup.object().shape<IFormData>({
356353 reason : Yup . string ( ) . test (
357354 "is-valid-reason" ,
358355 "Reason contains unsupported characters or symbols." ,
359- val => {
356+ ( val ) => {
360357 return ! val || isSimpleAscii ( val ) ;
361358 }
362359 ) ,
363360 paymentAddress : Yup . string ( ) . required ( "Required" ) ,
364361} ) ;
365362
366- const useStyles = makeStyles ( theme => ( {
363+ const useStyles = makeStyles ( ( theme ) => ( {
367364 container : {
368365 width : "100%" ,
369366 background : "white" ,
@@ -409,7 +406,7 @@ export const CreateRequestForm = ({
409406 onSubmit = { onSubmit }
410407 enableReinitialize
411408 initialValues = { {
412- currency : ! network || network === 4 ? "FAU-rinkeby " : "DAI-mainnet" ,
409+ currency : ! network || network === 5 ? "FAU-goerli " : "DAI-mainnet" ,
413410 amount : "" as any ,
414411 payer : "" ,
415412 reason : "" ,
0 commit comments