Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions apps/react-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { Grid } from "@mui/material";

import { HomePage } from "./components/Page";
import { PageContainer } from "./components/Page/LoginPage/LoginPage.styles";
import { PostPage } from "./components/Page";
import { CategoriesPage } from "./components/Page";
import LoginPage from "./components/Page/LoginPage";


function App() {
return (
<>
<HomePage />
{/* ACT 1 - Render PostPage, and CategoriesPage components */}
{/* ACT 2 - Move the following content to a new component called LoginPage and render it*/}
<PageContainer container>
Login Page
<Grid item md={4} xs={4} lg={4}>
Form
</Grid>
</PageContainer>
<PostPage />
<CategoriesPage />

<LoginPage />
</>
);
}
Expand Down
16 changes: 16 additions & 0 deletions apps/react-app/src/components/Page/LoginPage/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { PageContainer } from "./LoginPage.styles"
import { Grid } from "@mui/material";

function LoginPage() {
return (
<PageContainer container>
Login Page
<Grid item md={4} xs={4} lg={4}>
Form
</Grid>
</PageContainer>
)
}

export default LoginPage;

1 change: 1 addition & 0 deletions apps/react-app/src/components/Page/LoginPage/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// ACT 2 - Export LoginPage component
export { default } from './LoginPage';