Skip to content

Commit 5277d9c

Browse files
waleedlatif1claude
andcommitted
fix(modals): wrap "cannot be undone" in text-error for consistency
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 68a21c1 commit 5277d9c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/delete-modal/delete-modal.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,11 @@ export function DeleteModal({
230230
<ModalBody>
231231
<p className='text-[var(--text-secondary)]'>
232232
{renderDescription()}{' '}
233-
{restorableTypes.has(itemType)
234-
? 'You can restore it from Recently Deleted in Settings.'
235-
: 'This action cannot be undone.'}
233+
{restorableTypes.has(itemType) ? (
234+
'You can restore it from Recently Deleted in Settings.'
235+
) : (
236+
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
237+
)}
236238
</p>
237239
</ModalBody>
238240
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workspace-header/components/invite-modal/invite-modal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
613613
<span className='font-medium text-[var(--text-primary)]'>
614614
{memberToRemove?.email}
615615
</span>{' '}
616-
from this workspace? This action cannot be undone.
616+
from this workspace?{' '}
617+
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
617618
</p>
618619
</ModalBody>
619620
<ModalFooter>
@@ -645,7 +646,8 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
645646
<span className='font-medium text-[var(--text-primary)]'>
646647
{invitationToRemove?.email}
647648
</span>
648-
? This action cannot be undone.
649+
?{' '}
650+
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
649651
</p>
650652
</ModalBody>
651653
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workspace-header/workspace-header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ export function WorkspaceHeader({
667667
<p className='text-[var(--text-secondary)]'>
668668
Are you sure you want to leave{' '}
669669
<span className='font-base text-[var(--text-primary)]'>{leaveTarget?.name}</span>? You
670-
will lose access to all workflows and data in this workspace. This action cannot be
671-
undone.
670+
will lose access to all workflows and data in this workspace.{' '}
671+
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
672672
</p>
673673
</ModalBody>
674674
<ModalFooter>

apps/sim/ee/access-control/components/access-control.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ export function AccessControl() {
12901290
<span className='text-[var(--text-error)]'>
12911291
All members will be removed from this group.
12921292
</span>{' '}
1293-
This action cannot be undone.
1293+
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
12941294
</p>
12951295
</ModalBody>
12961296
<ModalFooter>

0 commit comments

Comments
 (0)