update blueprintjs

This commit is contained in:
2022-05-01 11:05:17 +02:00
committed by Stepan Usatiuk
parent 31ea21416c
commit a8b2c2c5f5
3 changed files with 2095 additions and 1508 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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",

View File

@@ -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}