mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Correcting error loop in StatusBadge.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
"use client"
|
||||
import {Tabs, TabsContent, TabsList, TabsTrigger} from "@/components/ui/tabs";
|
||||
import {DataTableWithPagination} from "@/components/wrappers/table/data-table-with-pagination";
|
||||
import {backupColumns} from "@/features/backup/columns";
|
||||
@@ -20,7 +19,6 @@ export const DatabaseTabs = (props: DatabaseTabsProps) => {
|
||||
</TabsList>
|
||||
|
||||
<TabsContent className="h-full justify-between" value="backup">
|
||||
|
||||
<DataTableWithPagination columns={backupColumns} data={props.backups}/>
|
||||
</TabsContent>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import {Badge} from "@/components/ui/badge";
|
||||
import {cn} from "@/lib/utils";
|
||||
|
||||
export type statusBadgeProps = {
|
||||
status: "pending" | "processing" | "success" | "failed"
|
||||
status: "pending" | "ongoing" | "success" | "failed"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export const StatusBadge = ({status}: statusBadgeProps) => {
|
||||
case 'pending':
|
||||
style = "text-yellow-500 border-yellow-500"
|
||||
break
|
||||
case 'processing':
|
||||
case 'ongoing':
|
||||
style = "text-orange-500 border-orange-500"
|
||||
break
|
||||
case 'failed':
|
||||
@@ -24,7 +24,7 @@ export const StatusBadge = ({status}: statusBadgeProps) => {
|
||||
style = "text-green-500 border-green-500"
|
||||
break
|
||||
default:
|
||||
throw Error
|
||||
style = "text-yellow-500 border-yellow-500"
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user