Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: cleanup RecoveryPhrase #7233

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions packages/shared/components/RecoveryPhrase.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<script lang="ts">
import { appSettings } from '@core/app'

export let recoveryPhrase: string[] = []
export let verifyRecoveryPhrase: string[] = undefined

export let recoveryPhrase: string[]
export let verifyRecoveryPhrase: string[] | undefined = undefined
export let blurred: boolean = false
export let disabled: boolean = false
export let boxed: boolean = false

$: dark = $appSettings.darkMode
</script>

{#if recoveryPhrase}
Expand All @@ -24,7 +19,6 @@
<recovery-word
id="recovery-word-{i}"
class:boxed
class:dark
class:disabled
class:errored
class:selected
Expand Down Expand Up @@ -64,11 +58,8 @@
}

recovery-word:not(.boxed) {
@apply px-6 py-4 rounded-2xl bg-gray-200;

&.dark {
@apply bg-gray-800;
}
@apply px-6 py-4 rounded-2xl;
@apply bg-gray-200 dark:bg-gray-800;

&.unmatched {
@apply filter blur-sm;
Expand All @@ -84,18 +75,12 @@

&.selected {
@apply rounded border border-solid border-blue-500 bg-blue-50;
@apply dark:bg-blue-300 dark:bg-opacity-10;
}

&.errored {
@apply rounded border border-solid border-red-500 bg-red-50;
}

&.dark.selected {
@apply bg-blue-300 bg-opacity-10;
}

&.dark.errored {
@apply bg-red-300 bg-opacity-10;
@apply dark:bg-red-300 dark:bg-opacity-10;
}
}
</style>
Loading