Skip to content

Commit

Permalink
fix: textAlign on table
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Code-Monkey committed Sep 15, 2022
1 parent 2561d3e commit d0f67fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
21 changes: 0 additions & 21 deletions packages/components/src/atoms/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,6 @@ const Table: FC<Props> = ({
? totalSize - (virtualRows?.[virtualRows.length - 1]?.end || 0)
: 0;

// const handleRowClick = useCallback(
// (id: number | string) => {
// if (onRowClick) onRowClick(id);
// },
// [onRowClick]
// );
//
// const handleColumnClick = useCallback(
// (
// column:
// | Accessor<object>
// | (string & (string | Accessor<object> | undefined))
// | undefined
// ) => {
// console.log('Sort Column: ', column);
// },
// []
// );

console.log(theme.defaultStyles);

return (
<div ref={tableContainerRef}>
<StyledTable {...theme.defaultStyles?.table} className={className}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`<Table /> should render correctly 1`] = `
<DocumentFragment>
<div>
<table
class="sc-jSMfEi eVsqtd"
class="sc-jSMfEi hFsVOi"
height="100%"
width="100%"
>
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/primal/box/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
shadow,
flexbox,
system,
typography,
} from '@techstack/styled-system';

import { shouldForwardProp } from '../../utils';
Expand All @@ -30,6 +31,7 @@ export const StyledBoxProps = compose(
border,
shadow,
flexbox,
typography,
utilProps
);

Expand Down

0 comments on commit d0f67fe

Please sign in to comment.