{file.numComments} Comments
diff --git a/src/section_view.css b/src/section_view.css
index 03c4e43..ef717c2 100644
--- a/src/section_view.css
+++ b/src/section_view.css
@@ -16,7 +16,8 @@ html {
}
div {
- border: 1px solid black;
+ border: 1px solid black;
+ /* toggle for clarity */
border-collapse: collapse;
}
@@ -70,7 +71,7 @@ div {
height: 35vh; /* Set the height to 35% of the viewport height */
}
-.grid-container {
+.files-grid-container {
display: flex;
flex-direction: row; /* Ensure flex direction is row */
overflow-x: auto; /* Enable horizontal scrolling */
@@ -82,11 +83,11 @@ div {
flex-wrap: nowrap; /* Ensure flex direction is row and no wrapping */
}
-.file-item {
+.files-grid-item {
min-width: 19%; /* Adjust minWidth to control item width */
}
-.item {
+.files-item {
padding: 2rem; /* Adjust theme.spacing(2) equivalent to 2rem */
text-align: center;
color: rgb(117, 117, 117); /* Adjust to theme.palette.text.secondary */
From bd5d9ef09734950ca5b6c56fea6855ca56baafe0 Mon Sep 17 00:00:00 2001
From: Alec Rollison <88508028+aelishRollo@users.noreply.github.com>
Date: Fri, 31 May 2024 10:55:39 -0400
Subject: [PATCH 5/8] Update README.md
---
README.md | 47 ++---------------------------------------------
1 file changed, 2 insertions(+), 45 deletions(-)
diff --git a/README.md b/README.md
index b87cb00..2bfacc1 100644
--- a/README.md
+++ b/README.md
@@ -1,46 +1,3 @@
-# Getting Started with Create React App
+# This branch is for reworking the project to use MUI component Library
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
-
-## Available Scripts
-
-In the project directory, you can run:
-
-### `npm start`
-
-Runs the app in the development mode.\
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
-
-The page will reload if you make edits.\
-You will also see any lint errors in the console.
-
-### `npm test`
-
-Launches the test runner in the interactive watch mode.\
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `npm run build`
-
-Builds the app for production to the `build` folder.\
-It correctly bundles React in production mode and optimizes the build for the best performance.
-
-The build is minified and the filenames include the hashes.\
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `npm run eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
+Currently Files.tsx has been reworked
From b74eb4f4798f67e71a56025094082bb516760183 Mon Sep 17 00:00:00 2001
From: Alec Rollison <88508028+aelishRollo@users.noreply.github.com>
Date: Sat, 1 Jun 2024 16:00:29 -0400
Subject: [PATCH 6/8] adjust indent to 4 spaces
---
.eslintrc.json | 3 ++-
src/Files.tsx | 46 +++++++++++++++++++++++-----------------------
2 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/.eslintrc.json b/.eslintrc.json
index 21ae569..024569d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,6 +5,7 @@
],
"rules": {
"testing-library/no-container": "off",
- "testing-library/no-node-access": "off"
+ "testing-library/no-node-access": "off",
+ "indent": ["error", 4]
}
}
diff --git a/src/Files.tsx b/src/Files.tsx
index f4963b7..529b684 100644
--- a/src/Files.tsx
+++ b/src/Files.tsx
@@ -9,29 +9,29 @@ type FilesProps = {
}
export const Files: React.FC = ({ files }) => {
- const globalStore = useGlobalStore();
+ const globalStore = useGlobalStore();
- return (
-
-
-
- {files.map((file) => {
- const numComments = globalStore.getCommentsForFile(file.id).length;
+ return (
+
+
+
+ {files.map((file) => {
+ const numComments = globalStore.getCommentsForFile(file.id).length;
- return (
-
-
- {file.title}
-