Skip to content

Commit

Permalink
fixing bun
Browse files Browse the repository at this point in the history
  • Loading branch information
ManyRios committed Nov 7, 2024
1 parent 9e37e22 commit 617834a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 51 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions packages/features/src/components/menu-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export const MenuDrawer = () => {
const navigate = useNavigate()
const networkId = useVault((state) => state.currentNetworkId)
const { t } = useTranslation()
const networkId = useVault((state) => state.currentNetworkId)


return (
<div className="drawer drawer-end">
<input id="menu-drawer" type="checkbox" className="drawer-toggle" />
Expand Down
2 changes: 1 addition & 1 deletion packages/features/src/error-renderer/views/error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FallbackProps } from "react-error-boundary"
import { useTranslation } from "react-i18next"
import { useMixpanel } from "react-mixpanel-browser"
//import { useMixpanel } from "react-mixpanel-browser"

export const ErrorView = ({ error, resetErrorBoundary }: FallbackProps) => {
const stringifiedError = JSON.stringify(
Expand Down
101 changes: 53 additions & 48 deletions packages/features/src/lock/views/unlock-wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,53 +25,58 @@ export const UnlockWalletView = ({
onSubmit,
showPassword,
togglePassword,
}: UnlockWalletViewProps) => (
<WizardLayout
title="Unlock Wallet"
headerShown={false}
footer={
<button
type="submit"
className="btn btn-primary max-w-48 w-full"
form="unlockWalletForm"
data-testid="submitForm"
disabled={!form.formState.dirtyFields.spendingPassword}
>
<span>Unlock</span>
</button>
}
>
<div className="w-full flex flex-col flex-1 items-center gap-12">
<form
onSubmit={form.handleSubmit(onSubmit)}
className="flex flex-1 flex-col gap-2 w-full"
id="unlockWalletForm"
>
<label
htmlFor="spendingPassword"
className={clsx("label cursor-pointer")}
}: UnlockWalletViewProps) => {
const { t } = useTranslation()
return (
<WizardLayout
title="Unlock Wallet"
headerShown={false}
footer={
<button
type="submit"
className="btn btn-primary max-w-48 w-full"
form="unlockWalletForm"
data-testid="submitForm"
disabled={!form.formState.dirtyFields.spendingPassword}
>
Spending Password
</label>
<label className="input flex items-center gap-2 w-full">
<input
id="spendingPassword"
type={showPassword ? "text" : "password"}
data-testid="unlockWallet/password"
placeholder="Enter your password"
className="grow"
{...form.register("spendingPassword")}
/>
<button
type="button"
className="btn btn-link -mr-4"
onClick={togglePassword}
<span>{t("lock.unlock")}</span>
</button>
}
>
<div className="w-full flex flex-col flex-1 items-center gap-12">
<form
onSubmit={form.handleSubmit(onSubmit)}
className="flex flex-1 flex-col gap-2 w-full"
id="unlockWalletForm"
>
<label
htmlFor="spendingPassword"
className={clsx("label cursor-pointer")}
>
{showPassword ? <EyeOffIcon size={24} /> : <EyeIcon size={24} />}
</button>
</label>
<FormError>{form.formState.errors.spendingPassword?.message}</FormError>
</form>
</div>
</WizardLayout>
)
{t("lock.spendingPassword")}
</label>
<label className="input flex items-center gap-2 w-full">
<input
id="spendingPassword"
type={showPassword ? "text" : "password"}
data-testid="unlockWallet/password"
placeholder="Enter your password"
className="grow"
{...form.register("spendingPassword")}
/>
<button
type="button"
className="btn btn-link -mr-4"
onClick={togglePassword}
>
{showPassword ? <EyeOffIcon size={24} /> : <EyeIcon size={24} />}
</button>
</label>
<FormError>
{form.formState.errors.spendingPassword?.message}
</FormError>
</form>
</div>
</WizardLayout>
)
}

0 comments on commit 617834a

Please sign in to comment.