Skip to content

Commit

Permalink
Merge pull request #100 from simon-wg/main
Browse files Browse the repository at this point in the history
Made the navbar slimmer, and removed dependency on digit-react-components
  • Loading branch information
simon-wg authored Apr 11, 2024
2 parents 71ad30f + 1b082b7 commit be3ef13
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 46 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Frontend

```sh
cd frontend
source dev_setup.sh
npm i
npm start
```
Expand Down
138 changes: 99 additions & 39 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@graphql-tools/load-files": "^6.3.2",
"@graphql-tools/merge": "^7.0.0",
"@graphql-tools/schema": "^8.0.3",
"@prisma/client": "^3.15.0",
"@prisma/client": "^5.9.0-dev.58",
"axios": "^0.21.1",
"connect-redis": "^6.0.0",
"express": "^4.17.1",
Expand Down Expand Up @@ -49,8 +49,8 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"mocha": "^9.0.3",
"prisma": "^3.15.2",
"prisma": "^5.9.0-dev.58",
"ts-node-dev": "^1.1.8",
"typescript": "^4.3.5"
}
}
}
3 changes: 3 additions & 0 deletions frontend/dev_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export NODE_OPTIONS=--openssl-legacy-provider

npm i
12 changes: 8 additions & 4 deletions frontend/src/common/components/header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ const Header = ({ children }) => {
title=""
mainPadding="0"
renderHeader={() => (
<Link to="/" style={{ textDecoration: "none", color: "white" }}>
<DigitText.Heading5 text="BookIT" />
</Link>
<div style={{ width: "100%", flexDirection: "row", display: "flex", placeItems: "center"}}>
<Link to="/" style={{ textDecoration: "none", color: "white" }}>
<DigitText.Heading5 text="BookIT" />
</Link>
<div style={{marginLeft: "2em"}}>
<Tabs/>
</div>
</div>
)}
renderToolbar={Tabs}
renderMain={() => <>{children}</>}
/>
);
Expand Down

0 comments on commit be3ef13

Please sign in to comment.