Skip to content

Commit

Permalink
fix: 스타일 카멜케이스 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 committed Oct 24, 2024
1 parent b436d6d commit f129e1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/wow-ui/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ const TableComponent = forwardRef<HTMLTableElement, TableProps>(

return (
<TableContext.Provider value={contextValue}>
<div className={TableContainerStyle} style={style}>
<div className={tableContainerStyle} style={style}>
<styled.table
aria-label="table"
className={clsx(TableStyle({ fullWidth }), className)}
className={clsx(tableStyle({ fullWidth }), className)}
ref={ref}
role="table"
{...rest}
Expand Down Expand Up @@ -108,7 +108,7 @@ Table.Td = Td;

export default Table;

const TableStyle = cva({
const tableStyle = cva({
base: {
borderCollapse: "collapse",
backgroundColor: "white",
Expand All @@ -126,7 +126,7 @@ const TableStyle = cva({
},
});

const TableContainerStyle = css({
const tableContainerStyle = css({
overflow: "auto",
position: "relative",
_scrollbar: {
Expand Down
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/Table/Th.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const Th = forwardRef<HTMLTableCellElement, TableHeaderProps>(
(props: TableHeaderProps, ref: Ref<HTMLTableCellElement>) => {
const { children, ...rest } = props;
return (
<th className={TableHeaderStyle} ref={ref} scope="col" {...rest}>
<th className={tableHeaderStyle} ref={ref} scope="col" {...rest}>
{children}
</th>
);
}
);

const TableHeaderStyle = css({
const tableHeaderStyle = css({
alignItems: "center",
backgroundColor: "backgroundAlternative",
color: "sub",
Expand Down
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/Table/Thead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Thead = forwardRef<HTMLTableSectionElement, TheadProps>(
>
<tr>
{showCheckbox && (
<Th style={TableCheckBoxStyle}>
<Th style={tableCheckBoxStyle}>
<Checkbox
checked={isHeaderCheckboxChecked}
onChange={handleHeaderCheckboxChange}
Expand All @@ -49,7 +49,7 @@ const Thead = forwardRef<HTMLTableSectionElement, TheadProps>(

export default Thead;

const TableCheckBoxStyle = {
const tableCheckBoxStyle = {
minWidth: "15px",
display: "flex",
minHeight: "44px",
Expand Down
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/Table/Tr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const TableRow = forwardRef<HTMLTableRowElement, TableRowProps>(

export default TableRow;

const TableCheckBoxStyle = {
const tableCheckBoxStyle = {
minWidth: "15px",
height: "100%",
display: "flex",
Expand All @@ -82,7 +82,7 @@ const TableCheckbox = ({
}) => {
const isSelected = selectedRows.has(value || 0);
return (
<Td style={TableCheckBoxStyle}>
<Td style={tableCheckBoxStyle}>
<Checkbox
checked={isSelected}
onChange={() => {
Expand Down

0 comments on commit f129e1e

Please sign in to comment.