Skip to content

Commit

Permalink
adjust indent to 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aelishRollo committed Jun 1, 2024
1 parent 3cb9f1a commit b74eb4f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
46 changes: 23 additions & 23 deletions src/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ type FilesProps = {
}

export const Files: React.FC<FilesProps> = ({ files }) => {
const globalStore = useGlobalStore();
const globalStore = useGlobalStore();

return (
<Box className="files-container">
<Box className="files-grid-container">
<Grid container spacing={2} wrap="nowrap" className="files-grid">
{files.map((file) => {
const numComments = globalStore.getCommentsForFile(file.id).length;
return (
<Box className="files-container">
<Box className="files-grid-container">
<Grid container spacing={2} wrap="nowrap" className="files-grid">
{files.map((file) => {
const numComments = globalStore.getCommentsForFile(file.id).length;

return (
<Grid item xs={2.4} key={file.id} className="files-grid-item">
<Paper className="files-item">
{file.title}
<br></br> <br></br>
{numComments}
{' '}
{plural('Comment', numComments)}
</Paper>
</Grid>
);
})}
</Grid>
</Box>
</Box>
);
return (
<Grid item xs={2.4} key={file.id} className="files-grid-item">
<Paper className="files-item">
{file.title}
<br></br> <br></br>
{numComments}
{' '}
{plural('Comment', numComments)}
</Paper>
</Grid>
);
})}
</Grid>
</Box>
</Box>
);
}

0 comments on commit b74eb4f

Please sign in to comment.