Skip to content

Commit

Permalink
adjust elemt size fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed May 2, 2024
1 parent 4b34035 commit 2339729
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/common-values.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const elementSize = (props) =>
props.options.padding === 'normal' ? 'medium' : 'small';
export const elementSize = ({ options = {} }) =>
options.padding === 'normal' ? 'medium' : 'small';

export const baseIconSize = (props) =>
elementSize(props) === 'medium' ? 48 : 32;

export const rowActions = (props) =>
props.actions
? props.actions.filter(
Expand Down

0 comments on commit 2339729

Please sign in to comment.