mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
update blueprintjs
This commit is contained in:
3552
frontend/package-lock.json
generated
3552
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blueprintjs/core": "^3.53.0",
|
||||
"@blueprintjs/core": "^4.0.0",
|
||||
"@parcel/config-default": "^2.3.1",
|
||||
"@parcel/transformer-sass": "^2.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
IBreadcrumbProps,
|
||||
Icon,
|
||||
Menu,
|
||||
MenuItem,
|
||||
Navbar,
|
||||
Popover,
|
||||
Spinner,
|
||||
@@ -94,7 +95,8 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
|
||||
transform: "translate3d(400px,0,0)",
|
||||
}}
|
||||
>
|
||||
{(_location: any) => (style: any) => (
|
||||
{(_location: any) => (style: any) =>
|
||||
(
|
||||
<animated.div
|
||||
style={style}
|
||||
className="viewComponent"
|
||||
@@ -108,7 +110,10 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
|
||||
path="/photos/:id"
|
||||
component={PhotoRoute}
|
||||
/>
|
||||
<Route path="/" component={Overview} />
|
||||
<Route
|
||||
path="/"
|
||||
component={Overview}
|
||||
/>
|
||||
</Switch>
|
||||
</animated.div>
|
||||
)}
|
||||
@@ -122,24 +127,24 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
|
||||
private menu() {
|
||||
return (
|
||||
<Menu>
|
||||
<Menu.Item
|
||||
<MenuItem
|
||||
icon="user"
|
||||
text="Account"
|
||||
onClick={() => this.props.history.push("/account")}
|
||||
/>
|
||||
<Menu.Item
|
||||
<MenuItem
|
||||
icon="log-out"
|
||||
text="Logout"
|
||||
onClick={this.props.logout}
|
||||
/>
|
||||
{this.props.darkMode ? (
|
||||
<Menu.Item
|
||||
<MenuItem
|
||||
icon="flash"
|
||||
text="Light Mode"
|
||||
onClick={this.props.dispatchToggleDarkMode}
|
||||
/>
|
||||
) : (
|
||||
<Menu.Item
|
||||
<MenuItem
|
||||
icon="moon"
|
||||
text="Dark Mode"
|
||||
onClick={this.props.dispatchToggleDarkMode}
|
||||
|
||||
Reference in New Issue
Block a user