Skip to content

Commit

Permalink
Remove semver logic from navigator & autohide banner (#3584)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed May 11, 2023
1 parent 95beb88 commit 58e61ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
17 changes: 4 additions & 13 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"react-router-dom": "^5.0.1",
"react-sortable-hoc": "^1.10.1",
"react-sortable-tree": "^2.6.2",
"semver-compare": "^1.0.0",
"slugify": "^1.4.6",
"tslib": "^2.4.1",
"url-join": "^4.0.1",
Expand Down Expand Up @@ -142,7 +141,6 @@
"@types/react-router-dom": "^4.3.4",
"@types/react-sortable-hoc": "^0.7.1",
"@types/react-sortable-tree": "^0.3.15",
"@types/semver-compare": "^1.0.1",
"@types/url-join": "^4.0.1",
"@types/webappsec-credential-management": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^5.41.0",
Expand Down
5 changes: 1 addition & 4 deletions src/components/Navigator/Navigator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { APP_VERSION } from "@dashboard/config";
import useLocalStorage from "@dashboard/hooks/useLocalStorage";
import useNotifier from "@dashboard/hooks/useNotifier";
import { Divider, Fade, Modal, Paper } from "@material-ui/core";
Expand All @@ -7,7 +6,6 @@ import Downshift from "downshift";
import hotkeys from "hotkeys-js";
import React from "react";
import { useIntl } from "react-intl";
import cmp from "semver-compare";

import {
getActions,
Expand Down Expand Up @@ -83,9 +81,8 @@ const Navigator: React.FC<NavigatorProps> = ({ visible, setVisibility }) => {
setVisibility(!visible);
});

if (cmp(APP_VERSION, "2.1.0") !== 1 && !notifiedAboutNavigator) {
if (!notifiedAboutNavigator) {
notify({
autohide: null,
text: intl.formatMessage(
{
id: "EM+30g",
Expand Down

0 comments on commit 58e61ab

Please sign in to comment.