Pull Request branch dev-clone to main #1
|
|
@ -23,7 +23,7 @@ export default function DashboardTable<T>({ table }: Props<T>) {
|
||||||
{headerGroup.headers.map((header) => (
|
{headerGroup.headers.map((header) => (
|
||||||
<TableHead
|
<TableHead
|
||||||
key={header.id}
|
key={header.id}
|
||||||
className="px-6 py-3 text-left text-sm font-medium text-muted-foreground"
|
className={`px-6 py-3 text-left text-sm font-medium text-muted-foreground ${header.column.columnDef.header === 'Status' ? 'text-center' : ''}`}
|
||||||
style={{
|
style={{
|
||||||
maxWidth: `${header.column.columnDef.maxSize}px`,
|
maxWidth: `${header.column.columnDef.maxSize}px`,
|
||||||
width: `${header.getSize()}`,
|
width: `${header.getSize()}`,
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,12 @@ const badgeVariants = cva(
|
||||||
outline: "text-foreground",
|
outline: "text-foreground",
|
||||||
|
|
||||||
// Custom variants for status
|
// Custom variants for status
|
||||||
waiting: "border-transparent bg-yellow-500 text-white hover:bg-yellow-600 px-2 py-1 text-[12px]",
|
inprogress: "border-yellow-500 border-2 bg-yellow-300 px-6 py-1.5 text-[12px]",
|
||||||
accepted: "border-transparent bg-green-500 text-white hover:bg-green-600 px-11 py-1 text-[14px]",
|
waiting: "border-yellow-400 border-2 bg-yellow-200 px-3 py-1.5 text-[12px]",
|
||||||
rejected: "border-transparent bg-red-500 text-white hover:bg-red-600 px-12 py-1 text-[14px]",
|
accepted: "border-green-500 border-2 bg-green-200 px-12 py-1.5 text-[12px]",
|
||||||
completed: "border-transparent bg-blue-500 text-white hover:bg-blue-600 px-12 py-1 text-[14px]",
|
rejected: "border-red-500 border-2 bg-red-200 px-14 py-1.5 text-[12px]",
|
||||||
|
unverified: "border-orange-400 border-2 bg-orange-200 px-6 py-1.5 text-[12px]",
|
||||||
|
completed: "border-blue-500 border-2 bg-blue-200 px-14 py-1.5 text-[12px]",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user