diff --git a/src/components/dashboard/RecoveryHeader/index.tsx b/src/components/dashboard/RecoveryHeader/index.tsx
index 6775d910c3..b2005b8e39 100644
--- a/src/components/dashboard/RecoveryHeader/index.tsx
+++ b/src/components/dashboard/RecoveryHeader/index.tsx
@@ -6,8 +6,8 @@ import { useIsGuardian } from '@/hooks/useIsGuardian'
import madProps from '@/utils/mad-props'
import { FEATURES } from '@/utils/chains'
import { useHasFeature } from '@/hooks/useChains'
-import { RecoveryProposal } from '@/components/recovery/RecoveryModal/RecoveryProposal'
-import { RecoveryInProgress } from '@/components/recovery/RecoveryModal/RecoveryInProgress'
+import { RecoveryProposalCard } from '@/components/recovery/RecoveryCards/RecoveryProposalCard'
+import { RecoveryInProgressCard } from '@/components/recovery/RecoveryCards/RecoveryInProgressCard'
import { WidgetContainer, WidgetBody } from '../styled'
import type { RecoveryQueueItem } from '@/store/recoverySlice'
@@ -28,9 +28,9 @@ export function _RecoveryHeader({
}
const modal = next ? (
-
+
) : isGuardian ? (
-
+
) : null
if (modal) {
diff --git a/src/components/recovery/RecoveryModal/RecoveryInProgress.tsx b/src/components/recovery/RecoveryCards/RecoveryInProgressCard.tsx
similarity index 92%
rename from src/components/recovery/RecoveryModal/RecoveryInProgress.tsx
rename to src/components/recovery/RecoveryCards/RecoveryInProgressCard.tsx
index 95fcf6fdc3..2598a8b222 100644
--- a/src/components/recovery/RecoveryModal/RecoveryInProgress.tsx
+++ b/src/components/recovery/RecoveryCards/RecoveryInProgressCard.tsx
@@ -13,17 +13,17 @@ import css from './styles.module.css'
type Props =
| {
- variant?: 'modal'
+ orientation?: 'vertical'
onClose: () => void
recovery: RecoveryQueueItem
}
| {
- variant: 'widget'
+ orientation: 'horizontal'
onClose?: never
recovery: RecoveryQueueItem
}
-export function RecoveryInProgress({ variant = 'modal', onClose, recovery }: Props): ReactElement {
+export function RecoveryInProgressCard({ orientation = 'vertical', onClose, recovery }: Props): ReactElement {
const { isExecutable, remainingSeconds } = useRecoveryTxState(recovery)
const router = useRouter()
@@ -50,7 +50,7 @@ export function RecoveryInProgress({ variant = 'modal', onClose, recovery }: Pro
)
- if (variant === 'widget') {
+ if (orientation === 'horizontal') {
return (
diff --git a/src/components/recovery/RecoveryModal/RecoveryProposal.tsx b/src/components/recovery/RecoveryCards/RecoveryProposalCard.tsx
similarity index 85%
rename from src/components/recovery/RecoveryModal/RecoveryProposal.tsx
rename to src/components/recovery/RecoveryCards/RecoveryProposalCard.tsx
index 08ebb3713e..3ace2208aa 100644
--- a/src/components/recovery/RecoveryModal/RecoveryProposal.tsx
+++ b/src/components/recovery/RecoveryCards/RecoveryProposalCard.tsx
@@ -15,19 +15,19 @@ import css from './styles.module.css'
type Props =
| {
- variant?: 'modal'
+ orientation?: 'vertical'
onClose: () => void
safe: SafeInfo
setTxFlow: TxModalContextType['setTxFlow']
}
| {
- variant: 'widget'
+ orientation: 'horizontal'
onClose?: never
safe: SafeInfo
setTxFlow: TxModalContextType['setTxFlow']
}
-export function _RecoveryProposal({ variant = 'modal', onClose, safe, setTxFlow }: Props): ReactElement {
+export function _RecoveryProposalCard({ orientation = 'vertical', onClose, safe, setTxFlow }: Props): ReactElement {
const onRecover = async () => {
onClose?.()
setTxFlow()
@@ -49,19 +49,19 @@ export function _RecoveryProposal({ variant = 'modal', onClose, safe, setTxFlow
)
const recoveryButton = (
-