Skip to content

Commit f0d986d

Browse files
Merge pull request #1 from jimmynguyen1308/refactor
chore: refactor
2 parents 8611f18 + 8134c3e commit f0d986d

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/components/SortArrows.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default component$(
5151
})}
5252
>
5353
<SvgArrowUp
54-
class={classList?.arrowUp || "mb-[-8.5px]"}
54+
class={classList?.arrowUp || "mt-[-8px] mb-[-9px]"}
5555
width={24}
5656
height={24}
5757
color={
@@ -61,7 +61,7 @@ export default component$(
6161
}
6262
/>
6363
<SvgArrowDown
64-
class={classList?.arrowDown || "mb-[-8.5px]"}
64+
class={classList?.arrowDown || "mt-[-9px] mb-[-8px]"}
6565
width={24}
6666
height={24}
6767
color={

src/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default component$(
9595
${tableData.tColumns?.columnClassList?.[heading]}
9696
`}
9797
>
98-
<div class="flex flex-col">
98+
<div class="flex flex-col gap-2">
9999
<div class="flex flex-row items-center justify-between gap-[10px]">
100100
{Object.keys(
101101
tableData.tHeadings.customHeadings || []

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Table from "./components/Table"
1+
import TableLoader from "./components/Table"
22

3-
export default Table
4-
export * from "./types"
3+
export { TableLoader }

src/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type TableData = {
4747
}
4848
filterOptions?: {
4949
params?: {
50-
[key: string]: "search" | "options"
50+
[key: string]: string
5151
}
5252
filterClassList?: string
5353
}
@@ -106,7 +106,7 @@ export type TableProps = {
106106
}
107107
filterOptions?: {
108108
params?: {
109-
[key: string]: "search" | "options"
109+
[key: string]: string
110110
}
111111
filterClassList?: string
112112
}

0 commit comments

Comments
 (0)