Skip to content

Commit

Permalink
fix(pdc-frontend): improve the main interface component
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Sep 12, 2023
1 parent c0788fb commit 23a98a5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/pdc-frontend/src/components/Main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import classnames from 'classnames/bind';
import React from 'react';
import React, { PropsWithChildren } from 'react';
import styles from './index.module.scss';

const css = classnames.bind(styles);

export const Main: React.FC<{ children: React.ReactNode }> = ({ children }) => (
<main className={css('utrecht-main')}>{children}</main>
interface MainProps extends React.HTMLAttributes<HTMLElement> {}

export const Main = ({ children, ...restProps }: PropsWithChildren<MainProps>) => (
<main className={css('utrecht-main')} {...restProps}>
{children}
</main>
);

0 comments on commit 23a98a5

Please sign in to comment.