@@ -2,7 +2,6 @@ import { useEffect, useState } from 'react'
22import { AbiItem } from 'web3-utils'
33import { Contract } from 'web3-eth-contract'
44import { isAddress } from 'web3-validator'
5- import * as Styled from './Authorization.style'
65
76/**
87 * Interface for managing Dapper wallet authorization details
@@ -146,46 +145,40 @@ const Authorization: React.FC<AuthorizationProps> = ({ walletAddress, contract }
146145 }
147146
148147 return (
149- < Styled . Container >
150- < Styled . WalletHeader >
151- Dapper Wallet: < Styled . WalletAddress > { walletAddress } </ Styled . WalletAddress >
152- </ Styled . WalletHeader >
148+ < >
149+ < h2 > Dapper Wallet:</ h2 >
150+ < code > { walletAddress } </ code >
153151
154152 { authorizationSuccess ? (
155- < Styled . SuccessMessage >
153+ < >
156154 < h3 > Success! New authorized / cosigner pair for this address is:</ h3 >
157- < Styled . AuthorizedAddress > { walletDetails . newAuthorized } </ Styled . AuthorizedAddress >
158- </ Styled . SuccessMessage >
155+ < code > { walletDetails . newAuthorized } </ code >
156+ </ >
159157 ) : (
160- < Styled . AuthorizationForm >
161- < Styled . FormInstructions >
162- < p > Use this form to add an Ethereum wallet as an authorized address to the Dapper wallet you're currently signed into.</ p >
163- < p > Ensure that you double-check the wallet address you've pasted to confirm it is correct.</ p >
164- < p > Once you're confident the address is correct, submit and sign the transaction.</ p >
165- </ Styled . FormInstructions >
158+ < >
159+ < p > Use this form to add an Ethereum wallet as an authorized address to the Dapper wallet you're currently signed into.</ p >
160+ < p > Ensure that you double-check the wallet address you've pasted to confirm it is correct.</ p >
161+ < p > Once you're confident the address is correct, submit and sign the transaction.</ p >
166162
167- < Styled . InputGroup >
168- < label htmlFor = "newAuthorized" >
169- Add new authorization:
170- < Styled . AddressInput
171- id = "newAuthorized"
172- type = "text"
173- value = { walletDetails . newAuthorized }
174- onChange = { e => handleInputChange ( e , 'newAuthorized' ) }
175- placeholder = "Enter Ethereum address (0x...)"
176- />
177- </ label >
178- </ Styled . InputGroup >
163+ < label >
164+ Add new authorization:
165+ < input
166+ type = "text"
167+ value = { walletDetails . newAuthorized }
168+ onChange = { e => handleInputChange ( e , 'newAuthorized' ) }
169+ placeholder = "Enter Ethereum address (0x...)"
170+ />
171+ </ label >
179172
180- < Styled . SubmitButton
173+ < button
181174 onClick = { handleSetAuthorized }
182175 disabled = { ! isAddress ( walletDetails . newAuthorized ) }
183176 >
184177 Set new authorized address
185- </ Styled . SubmitButton >
186- </ Styled . AuthorizationForm >
178+ </ button >
179+ </ >
187180 ) }
188- </ Styled . Container >
181+ </ >
189182 )
190183}
191184
0 commit comments