Skip to content

Commit ea2815d

Browse files
committed
[Dashboard] Remove TableContainer from tw-components (#5338)
DASH-417
1 parent 734707e commit ea2815d

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

apps/dashboard/src/components/chain-validation/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { InlineCode } from "@/components/ui/inline-code";
2+
import { TableContainer } from "@/components/ui/table";
23
import {
34
FormControl,
45
Input,
@@ -15,7 +16,7 @@ import { useRpcValidation } from "hooks/chains/useRpcValidation";
1516
import { AlertCircleIcon, CheckCircleIcon } from "lucide-react";
1617
import { type ChangeEvent, useState } from "react";
1718

18-
import { Button, Card, FormLabel, Link, TableContainer } from "tw-components";
19+
import { Button, Card, FormLabel, Link } from "tw-components";
1920

2021
const StatusCheck = (props: {
2122
status: "success" | "error" | "warning";

apps/dashboard/src/components/contract-components/contract-table/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { TableContainer } from "@/components/ui/table";
12
import { Spinner, Table, Tbody, Td, Th, Thead, Tr } from "@chakra-ui/react";
23
import { useMemo } from "react";
34
import { type Column, type Row, useTable } from "react-table";
45
import { Text } from "tw-components";
5-
import { TableContainer } from "tw-components/table-container";
66
import type { ComponentWithChildren } from "types/component-with-children";
77
import type { ContractCellContext, ContractId } from "../types";
88
import { ContractDescriptionCell } from "./cells/description";
@@ -55,7 +55,7 @@ export const DeployableContractTable: ComponentWithChildren<
5555
data: contractIds.map((contractId) => ({ contractId })),
5656
});
5757
return (
58-
<TableContainer className="relative">
58+
<TableContainer>
5959
{isFetching && (
6060
<Spinner
6161
color="primary"

apps/dashboard/src/components/shared/TWQueryTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { TableContainer } from "@/components/ui/table";
12
import {
23
Box,
34
ButtonGroup,
@@ -24,7 +25,7 @@ import {
2425
import { MoveRightIcon } from "lucide-react";
2526
import pluralize from "pluralize";
2627
import { type SetStateAction, useMemo } from "react";
27-
import { Button, TableContainer, Text } from "tw-components";
28+
import { Button, Text } from "tw-components";
2829

2930
type TWQueryTableProps<TRowData, TInputData> = {
3031
// biome-ignore lint/suspicious/noExplicitAny: FIXME

apps/dashboard/src/tw-components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ export * from "./form";
88
export * from "./heading";
99
export * from "./link";
1010
export * from "./menu";
11-
export * from "./table-container";
1211
export * from "./text";

apps/dashboard/src/tw-components/table-container.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)