-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: fix ClickableColumnHeader text style
- Loading branch information
tiendn
committed
Aug 3, 2023
1 parent
1f5f663
commit 1aa76dc
Showing
3 changed files
with
19 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
import clsx from 'clsx' | ||
import styles from './styles.module.scss' | ||
import { HTMLAttributes } from 'react' | ||
|
||
export const ClickableColumnHeader = ({ children, ...props }) => ( | ||
interface SpanProps extends HTMLAttributes<HTMLSpanElement> {} | ||
interface DivProps extends HTMLAttributes<HTMLDivElement> {} | ||
|
||
export const ClickableColumnHeader = ({ children, ...props }: SpanProps) => ( | ||
<span {...props} className={clsx(styles.clickableColumnHeader, props.className)}> | ||
{children} | ||
</span> | ||
) | ||
|
||
export const TableWrapper = ({ children, ...props }) => ( | ||
export const TableWrapper = ({ children, ...props }: DivProps) => ( | ||
<div {...props} className={clsx(styles.tableWrapper, 'flex', props.className)}> | ||
{children} | ||
</div> | ||
) | ||
|
||
export const PageButtons = ({ children, ...props }) => ( | ||
export const PageButtons = ({ children, ...props }: DivProps) => ( | ||
<div {...props} className={clsx(styles.pageButtons, props.className)}> | ||
{children} | ||
</div> | ||
) | ||
|
||
export const Arrow = ({ children, ...props }) => ( | ||
export const Arrow = ({ children, ...props }: DivProps) => ( | ||
<div {...props} className={clsx(styles.arrow, props.className)}> | ||
{children} | ||
</div> | ||
) | ||
|
||
export const Break = ({ ...props }) => <div {...props} className={clsx(styles.break, props.className)} /> | ||
export const Break = ({ ...props }: DivProps) => <div {...props} className={clsx(styles.break, props.className)} /> |