Skip to content

Commit 386b490

Browse files
fix: update button styles to use ghost variant and small size (#660)
* fix: update button styles to use ghost variant and small size * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent a266338 commit 386b490

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

src/routes/account/index.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,32 @@ function AccountSettingsPage() {
235235
</div>
236236
<div className="flex flex-col gap-2">
237237
<Button
238+
variant="ghost"
239+
size="xs"
238240
onClick={() => fileInputRef.current?.click()}
239241
disabled={isUploading}
240242
>
241243
<Camera className="w-3.5 h-3.5" />
242244
{isUploading ? 'Uploading...' : 'Change photo'}
243245
</Button>
244246
{canRevert && (
245-
<Button onClick={handleRevertToOAuth} disabled={isReverting}>
247+
<Button
248+
variant="ghost"
249+
size="xs"
250+
onClick={handleRevertToOAuth}
251+
disabled={isReverting}
252+
>
246253
<RotateCcw className="w-3.5 h-3.5" />
247254
{isReverting ? 'Reverting...' : 'Revert to original'}
248255
</Button>
249256
)}
250257
{hasAnyImage && (
251-
<Button onClick={handleRemovePhoto} disabled={isRemoving}>
258+
<Button
259+
variant="ghost"
260+
size="xs"
261+
onClick={handleRemovePhoto}
262+
disabled={isRemoving}
263+
>
252264
<Trash2 className="w-3.5 h-3.5" />
253265
{isRemoving ? 'Removing...' : 'Remove photo'}
254266
</Button>
@@ -355,7 +367,7 @@ function AccountSettingsPage() {
355367
) : null}
356368
</div>
357369
<div>
358-
<Button onClick={signOut}>
370+
<Button variant="ghost" size="xs" onClick={signOut}>
359371
<LogOut className="w-3.5 h-3.5" />
360372
Logout
361373
</Button>

src/routes/account/integrations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function IntegrationsPage() {
168168
</p>
169169
</div>
170170
{!isCreating && (
171-
<Button onClick={() => setIsCreating(true)}>
171+
<Button variant="ghost" size="xs" onClick={() => setIsCreating(true)}>
172172
<Plus className="w-3.5 h-3.5" />
173173
New Key
174174
</Button>

src/routes/account/submissions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function AccountSubmissionsPage() {
108108
View and manage your showcase submissions
109109
</p>
110110
<Button
111+
size="xs"
111112
as={Link}
112113
to="/showcase/submit"
113114
className="px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg border-none"

src/routes/admin/roles.index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function RolesPage() {
422422
isLoading={rolesQuery.isFetching}
423423
actions={
424424
!isCreating && (
425-
<Button onClick={handleCreateRole}>
425+
<Button size="xs" onClick={handleCreateRole}>
426426
<Plus className="w-4 h-4" />
427427
Create Role
428428
</Button>

0 commit comments

Comments
 (0)