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:
parent
adc017c48d
commit
89d935e27f
16 changed files with 118 additions and 146 deletions
|
@ -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>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue