Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 22, 2023
1 parent da2a2c0 commit 165c9d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/components/dashboard/RecoveryHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useHasFeature } from '@/hooks/useChains'
import { RecoveryProposalCard } from '@/components/recovery/RecoveryCards/RecoveryProposalCard'
import { RecoveryInProgressCard } from '@/components/recovery/RecoveryCards/RecoveryInProgressCard'
import { WidgetContainer, WidgetBody } from '../styled'
import useIsSafeOwner from '@/hooks/useIsSafeOwner'
import type { RecoveryQueueItem } from '@/store/recoverySlice'

export function _RecoveryHeader({
Expand All @@ -28,9 +29,9 @@ export function _RecoveryHeader({
}

const modal = next ? (
<RecoveryInProgressCard orientation="widget" recovery={next} />
<RecoveryInProgressCard orientation="horizontal" recovery={next} />
) : isGuardian ? (
<RecoveryProposalCard variant="widget" />
<RecoveryProposalCard orientation="horizontal" />
) : null

if (modal) {
Expand All @@ -49,6 +50,7 @@ export function _RecoveryHeader({
const _useSupportedRecovery = () => useHasFeature(FEATURES.RECOVERY)

export const RecoveryHeader = madProps(_RecoveryHeader, {
isOwner: useIsSafeOwner,
isGuardian: useIsGuardian,
supportsRecovery: _useSupportedRecovery,
queue: useRecoveryQueue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function _RecoveryProposalCard({ orientation = 'vertical', onClose, safe,
)

const recoveryButton = (
<Button orientation="contained" onClick={onRecover}>
<Button variant="contained" onClick={onRecover}>
Start recovery
</Button>
)
Expand All @@ -61,7 +61,7 @@ export function _RecoveryProposalCard({ orientation = 'vertical', onClose, safe,
<Grid item>{icon}</Grid>

<Grid item xs>
<Typography orientation="h6" fontWeight={700} mb={1}>
<Typography variant="h6" fontWeight={700} mb={1}>
{title}
</Typography>

Expand All @@ -88,7 +88,7 @@ export function _RecoveryProposalCard({ orientation = 'vertical', onClose, safe,
</Grid>

<Grid item xs={12}>
<Typography orientation="h6" fontWeight={700} mb={2}>
<Typography variant="h6" fontWeight={700} mb={2}>
{title}
</Typography>

Expand Down
1 change: 0 additions & 1 deletion src/components/settings/Recovery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { EnableRecoveryFlow } from '@/components/tx-flow/flows/EnableRecovery'
import { TxModalContext } from '@/components/tx-flow'
import { Chip } from '@/components/common/Chip'
import ExternalLink from '@/components/common/ExternalLink'
import { RecoverAccountFlow } from '@/components/tx-flow/flows/RecoverAccount'
import useIsSafeOwner from '@/hooks/useIsSafeOwner'
import { useAppSelector } from '@/store'
import { selectRecovery } from '@/store/recoverySlice'
Expand Down

0 comments on commit 165c9d3

Please sign in to comment.