Skip to content

Commit

Permalink
Updated card mode default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 9, 2024
1 parent d039c16 commit da5815d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-basics",
"version": "0.124.0",
"version": "0.125.0",
"description": "Everyday components for React",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/table/GridTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export interface GridTableProps extends CommonProps {
}

export function GridTable(props: GridTableProps) {
const { data, className, style, children, cardMode, ...domProps } = props;
const { data, className, style, children, cardMode = true, ...domProps } = props;
const breakpoint = useBreakpoint();
const responsive = ['xs', 'sm', 'md'].includes(breakpoint);

if (cardMode || responsive) {
if (cardMode && responsive) {
return (
<div className={classNames(styles.cards, className)}>
{data.map((row, index) => (
Expand Down

0 comments on commit da5815d

Please sign in to comment.