@danikokonn/yarik-frontend-lib 2.0.49-test1 → 2.0.49-test3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA0BzC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,GACX,EAAE,eAAe,qBAuUjB"}
1
+ {"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4BzC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,GACX,EAAE,eAAe,qBAgVjB"}
@@ -1,4 +1,12 @@
1
1
  import React from "react";
2
+ import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
3
+ import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
4
+ import DarkModeIcon from "@mui/icons-material/DarkMode";
5
+ import HubIcon from "@mui/icons-material/Hub";
6
+ import LightModeIcon from "@mui/icons-material/LightMode";
7
+ import LogoutIcon from "@mui/icons-material/Logout";
8
+ import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
9
+ import MenuIcon from "@mui/icons-material/Menu";
2
10
  import AppBar from "@mui/material/AppBar";
3
11
  import Box from "@mui/material/Box";
4
12
  import Container from "@mui/material/Container";
@@ -7,14 +15,7 @@ import Menu from "@mui/material/Menu";
7
15
  import MenuItem from "@mui/material/MenuItem";
8
16
  import Toolbar from "@mui/material/Toolbar";
9
17
  import Typography from "@mui/material/Typography";
10
- import LogoutIcon from "@mui/icons-material/Logout";
11
- import MenuIcon from "@mui/icons-material/Menu";
12
- import LightModeIcon from "@mui/icons-material/LightMode";
13
- import DarkModeIcon from "@mui/icons-material/DarkMode";
14
- import HubIcon from "@mui/icons-material/Hub";
15
- import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
16
- import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
17
- import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
18
+ import { Link as RouterLink } from "react-router";
18
19
  import Avatar from "@mui/material/Avatar";
19
20
  import ListItemIcon from "@mui/material/ListItemIcon";
20
21
  import ListItemText from "@mui/material/ListItemText";
@@ -42,7 +43,7 @@ export default function Navigation({ activeTab, additionalControls, username, ti
42
43
  return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab: activeTab, sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon }));
43
44
  }
44
45
  else {
45
- React.createElement(Button, { key: 2, href: lnk.url, sx: sx, color: "inherit", variant: "text" }, lnk.name);
46
+ return (React.createElement(Button, { component: RouterLink, to: lnk.url, key: idx, sx: sx, color: "inherit", variant: "text" }, lnk.name));
46
47
  }
47
48
  });
48
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danikokonn/yarik-frontend-lib",
3
- "version": "2.0.49-test1",
3
+ "version": "2.0.49-test3",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "author": "",