mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-28 05:49:49 -04:00
main branch integraiton
This commit is contained in:
parent
be164d1a05
commit
15ad267225
|
@ -14,6 +14,7 @@ import DataPoint from "@/utils/models/DataPoint";
|
|||
interface ColumnHeaderProps<T extends DataPoint> {
|
||||
header: Header<T, any>;
|
||||
details: Details | undefined;
|
||||
hasHorizontalBorders: boolean;
|
||||
setFilterFn?: (field: string, filterFn: FilterFn) => void;
|
||||
}
|
||||
|
||||
|
@ -30,6 +31,7 @@ function DropdownCheckIcon({ className }: { className?: string }) {
|
|||
export function ColumnHeader<T extends DataPoint>({
|
||||
header,
|
||||
details,
|
||||
hasHorizontalBorders,
|
||||
setFilterFn,
|
||||
}: ColumnHeaderProps<T>) {
|
||||
const { column } = header;
|
||||
|
@ -90,7 +92,7 @@ export function ColumnHeader<T extends DataPoint>({
|
|||
scope="col"
|
||||
className={`border-gray-200 border-y font-medium ${
|
||||
isFiltered ? "bg-purple-50" : ""
|
||||
}`}
|
||||
} ${hasHorizontalBorders ? "border-x" : ""}`}
|
||||
ref={headerRef}
|
||||
>
|
||||
<div>
|
||||
|
|
|
@ -251,7 +251,7 @@ export default function Table<T extends DataPoint>({
|
|||
key={cell.id}
|
||||
className={`[&:nth-child(n+${
|
||||
2 + offset
|
||||
})]:border-x pl-2 relative first:text-left first:px-0 last:border-none ${
|
||||
})]:border-x px-2 relative first:text-left first:px-0 last:border-none ${
|
||||
cell.column.getIsFiltered()
|
||||
? "bg-purple-50"
|
||||
: ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user