Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Update TaskQueueTable styling to use styled
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Feb 28, 2024
1 parent c94e4af commit cc054bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`Snapshot Tests TaskQueueTable.stories Default 1`] = `
class="leafygreen-ui-1a574ai"
>
<div
class="css-1wf6e6y-StyledTable e1bwwd861 leafygreen-ui-12875ma"
class="leafygreen-ui-1xn4uvd e1hj893t1 css-kcblj1-StyledTable-StyledBaseTable e1bwwd861"
tabindex="0"
>
<table
Expand Down
10 changes: 5 additions & 5 deletions src/pages/taskQueue/TaskQueueTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect, useMemo, useRef, useState } from "react";
import styled from "@emotion/styled";
import Badge from "@leafygreen-ui/badge";
import { css } from "@leafygreen-ui/emotion";
import { LGColumnDef, useLeafyGreenTable } from "@leafygreen-ui/table";
import { Body, Disclaimer } from "@leafygreen-ui/typography";
import { useTaskQueueAnalytics } from "analytics";
Expand Down Expand Up @@ -62,20 +61,21 @@ const TaskQueueTable: React.FC<TaskQueueTableProps> = ({
}, [taskId, taskQueue]);

return (
<BaseTable
<StyledBaseTable
data-cy="task-queue-table"
table={table}
shouldAlternateRowColor
emptyComponent={<TablePlaceholder message="No tasks found in queue." />}
ref={tableContainerRef}
selectedRowIndexes={selectedRowIndexes}
className={css`
flex-grow: 1;
`}
/>
);
};

const StyledBaseTable = styled(BaseTable)`
flex-grow: 1;
`;

const TaskCell = styled.div`
display: flex;
flex-direction: column;
Expand Down

0 comments on commit cc054bb

Please sign in to comment.