From bf353ff9072b5e982e7be26ac0bd84ccb5eacc3d Mon Sep 17 00:00:00 2001 From: miguel-merlin Date: Thu, 22 Feb 2024 15:00:17 -0500 Subject: [PATCH 1/2] feat: Added new pages --- src/app/App.tsx | 5 ++++- src/pages/BlogPage.tsx | 8 ++++++++ src/pages/DashboardPage.tsx | 8 ++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/pages/BlogPage.tsx create mode 100644 src/pages/DashboardPage.tsx diff --git a/src/app/App.tsx b/src/app/App.tsx index 7bad8a1..64111c2 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1,12 +1,15 @@ -import React from 'react' import { Routes, Route } from 'react-router-dom' import HomePage from '../pages/HomePage' +import DashboardPage from '../pages/DashboardPage' +import BlogPage from '../pages/BlogPage' function App (): JSX.Element { return (
} /> + } /> + } />
) diff --git a/src/pages/BlogPage.tsx b/src/pages/BlogPage.tsx new file mode 100644 index 0000000..6905fe9 --- /dev/null +++ b/src/pages/BlogPage.tsx @@ -0,0 +1,8 @@ +function BlogPage (): JSX.Element { + return ( +
+
+ ) +} + +export default BlogPage diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx new file mode 100644 index 0000000..bf4b88e --- /dev/null +++ b/src/pages/DashboardPage.tsx @@ -0,0 +1,8 @@ +function DashboardPage (): JSX.Element { + return ( +
+
+ ) +} + +export default DashboardPage From c8066533f38434df30dc0d2da1e37024dfcb3a5a Mon Sep 17 00:00:00 2001 From: miguel-merlin Date: Thu, 22 Feb 2024 15:02:54 -0500 Subject: [PATCH 2/2] docs: Added how to run linter --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index da4f05d..e3d9506 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,11 @@ Commit your changes ``` git commit -m "Commit message" ``` +Before pushing your changes you have to run the linter. (The linter will +make sure your code if following standard code styling) +``` +npm run lint +``` Push your changes ``` git push --set-upstream origin {branch_name}