mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-01 14:59:19 +08:00
improvement(settings): drop the Delete account row's description (#6845)
The confirmation modal already states the consequence, and states it better: it names the account, enumerates the workspaces that will be deleted, notes which billing transfers instead, marks 'This cannot be undone' in the error color, and requires typing the email to proceed. Nothing is lost by removing the line from the row. The wrapper it shared with the row goes too, now that the row is the section's only child.
This commit is contained in:
@@ -563,15 +563,9 @@ export function General() {
|
||||
|
||||
{!isAuthDisabled && (
|
||||
<SettingsSection label='Account'>
|
||||
<div className='flex flex-col gap-3'>
|
||||
<div className='flex items-center justify-between'>
|
||||
<Label>Delete account</Label>
|
||||
<Chip onClick={() => setShowDeleteAccountModal(true)}>Delete</Chip>
|
||||
</div>
|
||||
<p className='text-[var(--text-muted)] text-small'>
|
||||
Permanently deletes your account and everything only you can reach — workflows,
|
||||
chats, files, knowledge bases and credentials. This cannot be undone.
|
||||
</p>
|
||||
<div className='flex items-center justify-between'>
|
||||
<Label>Delete account</Label>
|
||||
<Chip onClick={() => setShowDeleteAccountModal(true)}>Delete</Chip>
|
||||
</div>
|
||||
</SettingsSection>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user