-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pdc-frontend): improve the main interface component
- Loading branch information
1 parent
c0788fb
commit 23a98a5
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); |