Skip to content

Commit 66f908e

Browse files
committed
Refactor Content to use styled components
1 parent 9418162 commit 66f908e

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

src/components/Content/Content.scss

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/components/Content/Content.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import useWindowManagerStore from "../../stores/windowManagerStore";
22

3-
import "./Content.scss";
3+
import { StyledContainer, StyledContent } from "./Styled.Content";
44

55
interface ContentProps {}
66

@@ -9,17 +9,17 @@ function Content({}: ContentProps) {
99
const winMan = useWindowManagerStore();
1010

1111
return (
12-
<div id="content__container">
13-
<div id="content" ref={winMan.contentRef}>
12+
<StyledContainer id="content__container">
13+
<StyledContent id="content" ref={winMan.contentRef}>
1414
{winMan.getWindowDefinitions().map((definition) => {
1515
return (
1616
<definition.component {...definition.props} key={definition.key}>
1717
{definition.children}
1818
</definition.component>
1919
);
2020
})}
21-
</div>
22-
</div>
21+
</StyledContent>
22+
</StyledContainer>
2323
);
2424
}
2525

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import styled from "@emotion/styled";
2+
3+
export const StyledContainer = styled.div`
4+
box-sizing: border-box;
5+
width: 100%;
6+
height: 100%;
7+
padding: 0 10px;
8+
`;
9+
10+
export const StyledContent = styled.div`
11+
border-radius: 15px;
12+
width: 100%;
13+
height: 100%;
14+
`;

0 commit comments

Comments
 (0)