Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
fix: <Frame> make className, noBorder, noGutter props not required (#129
Browse files Browse the repository at this point in the history
)
  • Loading branch information
SergeyRoyt authored Nov 26, 2023
1 parent 918d79f commit 953d8c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/frame/frame.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { FC } from 'react';
import cx from 'classnames';
import styles from './frame.module.scss';
import { ElementContent } from '../../types';
import styles from './frame.module.scss';

type FrameProps = {
children: ElementContent;
className: string;
noGutter: boolean;
noBorder: boolean;
className?: string;
noGutter?: boolean;
noBorder?: boolean;
};

const Frame: FC<FrameProps> = ({ children, className, noGutter, noBorder }) => (
const Frame: FC<FrameProps> = ({ children, className, noGutter = false, noBorder = false }) => (
<div
className={cx(styles.frame, className, {
[styles.noGutter]: noGutter,
Expand Down

0 comments on commit 953d8c1

Please sign in to comment.