Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/pages/ProjectDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,9 @@ function LocationSection({
</Button>
{(location || manualLat || manualLng) && (
<Button
variant="ghost"
variant="outline-destructive"
size="sm"
onClick={handleClearLocation}
className="text-red-600 dark:text-red-400"
>
Clear Location
</Button>
Expand Down
8 changes: 4 additions & 4 deletions src/components/pages/UserDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function UserInfoCard({
</p>
</div>
<Button
variant="ghost"
variant="outline-destructive"
size="sm"
className="text-red-600 hover:text-red-700 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-950/30 shrink-0"
className="shrink-0"
onClick={onDelete}
>
<Trash2 className="h-4 w-4 mr-1.5" />
Expand All @@ -78,7 +78,7 @@ function UserInfoCard({
<Badge variant={user.is_active ? "active" : "inactive"}>
{user.is_active ? "Active" : "Inactive"}
</Badge>
<Button variant="ghost" size="sm" onClick={onToggleActive}>
<Button variant="outline" size="sm" onClick={onToggleActive}>
{user.is_active ? "Deactivate" : "Activate"}
</Button>
</div>
Expand All @@ -94,7 +94,7 @@ function UserInfoCard({
) : (
<Badge variant="default">No</Badge>
)}
<Button variant="ghost" size="sm" onClick={onToggleAdmin}>
<Button variant="outline" size="sm" onClick={onToggleAdmin}>
{user.is_platform_admin ? "Remove Admin" : "Make Admin"}
</Button>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const buttonVariants = cva(
secondary: "bg-areia/20 text-verde hover:bg-areia/30",
destructive: "bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:hover:bg-red-600",
outline: "border border-areia bg-surface text-preto hover:bg-branco",
"outline-destructive": "border border-red-200 bg-surface text-red-600 hover:bg-red-50 hover:text-red-700 dark:border-red-800/40 dark:text-red-400 dark:hover:bg-red-950/30",
ghost: "text-verde hover:bg-areia/10",
link: "text-telha underline-offset-4 hover:underline",
},
Expand Down
Loading