Skip to content

Commit

Permalink
get rid of connected from ConnectWalletForm
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Jul 16, 2024
1 parent f021261 commit 5c51af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 1 addition & 7 deletions src/popup/components/ConnectWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ interface ConnectWalletFormInputs {
}

interface ConnectWalletFormProps {
connected: boolean
publicKey: string
}

export const ConnectWalletForm = ({
publicKey,
connected
}: ConnectWalletFormProps) => {
export const ConnectWalletForm = ({ publicKey }: ConnectWalletFormProps) => {
const {
register,
handleSubmit,
Expand Down Expand Up @@ -146,7 +142,6 @@ export const ConnectWalletForm = ({
<Input
type="text"
label="Wallet address or payment pointer"
disabled={connected}
placeholder="https://ilp.rafiki.money/johndoe"
errorMessage={errors.walletAddressUrl?.message}
{...register('walletAddressUrl', {
Expand All @@ -160,7 +155,6 @@ export const ConnectWalletForm = ({
<Input
type="text"
inputMode="numeric"
disabled={connected}
addOn={currencySymbol.symbol}
label="Amount"
description="Enter the amount to use from your wallet."
Expand Down
7 changes: 1 addition & 6 deletions src/popup/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export const Component = () => {
if (state.connected) {
return <WalletInformation info={state} />
} else {
return (
<ConnectWalletForm
publicKey={state.publicKey}
connected={state.connected}
/>
)
return <ConnectWalletForm publicKey={state.publicKey} />
}
}

0 comments on commit 5c51af5

Please sign in to comment.