Skip to content

Commit

Permalink
ScheduleTable TS conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
doggan committed Sep 5, 2023
1 parent 7c5ad90 commit 4f86f46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export function SchedulesTable({
<Row
height={ROW_HEIGHT}
inset={15}
backgroundColor="transparent"
onClick={() => onSelect(item.id)}
style={{
cursor: 'pointer',
Expand Down
12 changes: 5 additions & 7 deletions packages/desktop-client/src/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ type TableProps = {
items: TableItem[];
count?: number;
headers?: ReactNode | TableHeaderProps['headers'];
contentHeader: ReactNode;
contentHeader?: ReactNode;
loading: boolean;
rowHeight?: number;
backgroundColor?: string;
Expand All @@ -871,16 +871,15 @@ type TableProps = {
position: number;
}) => ReactNode;
renderEmpty?: ReactNode | (() => ReactNode);
getItemKey: (index: number) => TableItem['id'];
getItemKey?: (index: number) => TableItem['id'];
loadMore?: () => void;
style?: CSSProperties;
navigator: ReturnType<typeof useTableNavigator>;
listRef;
onScroll: () => void;
navigator?: ReturnType<typeof useTableNavigator>;
onScroll?: () => void;
version?: string;
allowPopupsEscape?: boolean;
isSelected?: (id: TableItem['id']) => boolean;
saveScrollWidth: (parent, child) => void;
saveScrollWidth?: (parent, child) => void;
};

export const Table = forwardRef<TableHandleRef, TableProps>(
Expand All @@ -899,7 +898,6 @@ export const Table = forwardRef<TableHandleRef, TableProps>(
loadMore,
style,
navigator,
listRef,
onScroll,
version = 'v1',
allowPopupsEscape,
Expand Down

0 comments on commit 4f86f46

Please sign in to comment.