Add Navbar component, emotion for css and storybook
This commit is contained in:
22
front/src/layout/AppLayout.tsx
Normal file
22
front/src/layout/AppLayout.tsx
Normal file
@ -0,0 +1,22 @@
|
||||
import Navbar from './Navbar';
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledLayout = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
`;
|
||||
|
||||
type OwnProps = {
|
||||
children: JSX.Element;
|
||||
};
|
||||
|
||||
function AppLayout({ children }: OwnProps) {
|
||||
return (
|
||||
<StyledLayout>
|
||||
<Navbar />
|
||||
<div>{children}</div>
|
||||
</StyledLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export default AppLayout;
|
||||
Reference in New Issue
Block a user