Skip to content

Commit 22c2571

Browse files
committed
standardize back buttons in settings
1 parent 4f21ceb commit 22c2571

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

apps/sim/app/workspace/[workspaceId]/settings/components/credential-sets/credential-sets.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ export function CredentialSets() {
601601
</div>
602602
</div>
603603

604-
<div className='mt-auto flex items-center justify-end'>
605-
<Button onClick={handleBackToList} variant='tertiary'>
604+
<div className='mt-auto flex items-center justify-start'>
605+
<Button onClick={handleBackToList} variant='default'>
606606
Back
607607
</Button>
608608
</div>

apps/sim/app/workspace/[workspaceId]/settings/components/mcp/mcp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,9 @@ export function MCP({ initialServerId }: MCPProps) {
574574
</div>
575575

576576
<div className='mt-auto flex items-center justify-between'>
577+
<Button onClick={handleBackToList} variant='default'>
578+
Back
579+
</Button>
577580
<div className='flex items-center gap-[8px]'>
578581
<Button
579582
onClick={() => handleRefreshServer(server.id)}
@@ -592,9 +595,6 @@ export function MCP({ initialServerId }: MCPProps) {
592595
Edit
593596
</Button>
594597
</div>
595-
<Button onClick={handleBackToList} variant='tertiary'>
596-
Back
597-
</Button>
598598
</div>
599599

600600
<McpServerFormModal

apps/sim/app/workspace/[workspaceId]/settings/components/workflow-mcp-servers/workflow-mcp-servers.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function ServerDetailView({ workspaceId, serverId, onBack }: ServerDetailViewPro
316316
Failed to load server details
317317
</p>
318318
<Button variant='default' onClick={onBack}>
319-
Go Back
319+
Back
320320
</Button>
321321
</div>
322322
)
@@ -588,6 +588,9 @@ function ServerDetailView({ workspaceId, serverId, onBack }: ServerDetailViewPro
588588
</SModalTabs>
589589

590590
<div className='mt-auto flex items-center justify-between'>
591+
<Button onClick={onBack} variant='default'>
592+
Back
593+
</Button>
591594
<div className='flex items-center gap-[8px]'>
592595
{activeServerTab === 'details' && (
593596
<>
@@ -619,9 +622,6 @@ function ServerDetailView({ workspaceId, serverId, onBack }: ServerDetailViewPro
619622
</>
620623
)}
621624
</div>
622-
<Button onClick={onBack} variant='tertiary'>
623-
Back
624-
</Button>
625625
</div>
626626
</div>
627627

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ export function AccessControl() {
797797
</div>
798798
</div>
799799

800-
<div className='mt-auto flex items-center justify-end'>
801-
<Button onClick={handleBackToList} variant='tertiary'>
800+
<div className='mt-auto flex items-center justify-start'>
801+
<Button onClick={handleBackToList} variant='default'>
802802
Back
803803
</Button>
804804
</div>

0 commit comments

Comments
 (0)