Skip to content

Commit

Permalink
Standardization of imports for utils
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Jan 23, 2024
1 parent 4b967f4 commit 205bba7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { TransactionInfo } from "#/types"
import Cell from "."
import { ContentType, getCustomContent } from "./utils/content"
import { ContentType, getCustomContent } from "./utils"

function CustomCell({
type,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./content"
2 changes: 1 addition & 1 deletion dapp/src/components/TransactionHistory/Table/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import { UseTransactionHistoryTableResult } from "#/types"
import { HStack, IconButton } from "@chakra-ui/react"
import { TextSm } from "#/components/shared/Typography"
import { PAGINATION_BUTTONS, getPaginationState } from "./utils/pagination"
import { PAGINATION_BUTTONS, getPaginationState } from "./utils"

function TableFooter({ table }: { table: UseTransactionHistoryTableResult }) {
const { pageIndex, pageSize } = table.getState().pagination
Expand Down
2 changes: 1 addition & 1 deletion dapp/src/components/TransactionHistory/Table/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import { Thead, Tr, Th, Icon, useMultiStyleConfig, Box } from "@chakra-ui/react"
import { flexRender } from "@tanstack/react-table"
import { UseTransactionHistoryTableResult } from "#/types"
import { SORT_ICONS } from "./utils/sorting"
import { SORT_ICONS } from "./utils"

function TableHeader({ table }: { table: UseTransactionHistoryTableResult }) {
const styles = useMultiStyleConfig("Table")
Expand Down
2 changes: 1 addition & 1 deletion dapp/src/components/TransactionHistory/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTransactionHistoryTable } from "#/hooks"
import { StakeHistory } from "#/types"
import TableHeader from "./Header"
import TableBody from "./Body"
import { COLUMNS } from "./utils/columns"
import { COLUMNS } from "./utils"
import TableFooter from "./Footer"

function Table({ data }: { data: StakeHistory[] }) {
Expand Down
3 changes: 3 additions & 0 deletions dapp/src/components/TransactionHistory/Table/utils/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./columns"
export * from "./pagination"
export * from "./sorting"

0 comments on commit 205bba7

Please sign in to comment.