Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix project filter on homepage (#39343)

Joshen Lim9343dc524f74
diff --git a/apps/studio/components/interfaces/HomePageActions.tsx b/apps/studio/components/interfaces/HomePageActions.tsx
index 7e07fcce3dd..2bfdfcb673b 100644
--- a/apps/studio/components/interfaces/HomePageActions.tsx
+++ b/apps/studio/components/interfaces/HomePageActions.tsx
@@ -91,34 +91,22 @@ export const HomePageActions = ({
{ key: PROJECT_STATUS.ACTIVE_HEALTHY, label: 'Active' },
{ key: PROJECT_STATUS.INACTIVE, label: 'Paused' },
].map(({ key, label }) => (
- <div key={key} className="group flex items-center justify-between py-0.5">
- <div className="flex items-center gap-x-2">
- <Checkbox_Shadcn_
- id={key}
- name={key}
- checked={filterStatus.length === 0 || filterStatus.includes(key)}
- onCheckedChange={() => {
- if (filterStatus.includes(key)) {
- setFilterStatus(filterStatus.filter((y) => y !== key))
- } else if (filterStatus.length === 1) {
- setFilterStatus([])
- } else {
- setFilterStatus(filterStatus.concat([key]))
- }
- }}
- />
- <Label_Shadcn_ htmlFor={key} className="capitalize text-xs">
- {label}
- </Label_Shadcn_>
- </div>
- <Button
- size="tiny"
- type="default"
- onClick={() => setFilterStatus([key])}
- className="transition opacity-0 group-hover:opacity-100 h-auto px-1 py-0.5"
- >
- Select only
- </Button>
+ <div className="flex items-center gap-x-2 py-1">
+ <Checkbox_Shadcn_
+ id={key}
+ name={key}
+ checked={filterStatus.includes(key)}
+ onCheckedChange={() => {
+ if (filterStatus.includes(key)) {
+ setFilterStatus(filterStatus.filter((y) => y !== key))
+ } else {
+ setFilterStatus(filterStatus.concat([key]))
+ }
+ }}
+ />
+ <Label_Shadcn_ htmlFor={key} className="capitalize text-xs w-full">
+ {label}
+ </Label_Shadcn_>
</div>
))}
</div>