1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-22 04:49:36 +02:00

Components: refactored UI components to use new state. Minor changes to exports and props

This commit is contained in:
Paweł Malak 2021-11-09 13:46:07 +01:00
parent adc017c48d
commit 89d935e27f
16 changed files with 118 additions and 146 deletions

View file

@ -1,13 +1,10 @@
import { ReactNode } from 'react';
import classes from './Layout.module.css';
interface ComponentProps {
children: JSX.Element | JSX.Element[];
children: ReactNode;
}
export const Container = (props: ComponentProps): JSX.Element => {
return (
<div className={classes.Container}>
{props.children}
</div>
)
}
return <div className={classes.Container}>{props.children}</div>;
};