@canmingir/link 1.2.1 → 1.2.2
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.
package/package.json
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { Button, DialogActions } from "@mui/material";
|
|
2
|
+
import Dialog, { dialogClasses } from "@mui/material/Dialog";
|
|
3
|
+
import React, { useCallback, useState } from "react";
|
|
4
|
+
import { publish, useEvent } from "@nucleoidai/react-event";
|
|
5
|
+
import { storage, useStorage } from "@nucleoidjs/webstorage";
|
|
6
|
+
import { useMediaQuery, useTheme } from "@mui/material";
|
|
7
|
+
|
|
1
8
|
import Box from "@mui/material/Box";
|
|
2
9
|
import IconButton from "@mui/material/IconButton";
|
|
3
10
|
import Iconify from "../../../components/Iconify";
|
|
@@ -22,13 +29,6 @@ import { useEventListener } from "../../../hooks/use-event-listener";
|
|
|
22
29
|
import { useNavigate } from "react-router-dom";
|
|
23
30
|
import useProjects from "../../../hooks/useProjects";
|
|
24
31
|
|
|
25
|
-
import { Button, DialogActions } from "@mui/material";
|
|
26
|
-
import Dialog, { dialogClasses } from "@mui/material/Dialog";
|
|
27
|
-
import React, { useCallback, useState } from "react";
|
|
28
|
-
import { publish, useEvent } from "@nucleoidai/react-event";
|
|
29
|
-
import { storage, useStorage } from "@nucleoidjs/webstorage";
|
|
30
|
-
import { useMediaQuery, useTheme } from "@mui/material";
|
|
31
|
-
|
|
32
32
|
function ProjectBar() {
|
|
33
33
|
const label = config().template?.projectBar?.label;
|
|
34
34
|
const { appId, name } = config();
|
|
@@ -92,9 +92,10 @@ function ProjectBar() {
|
|
|
92
92
|
const { id: projectId } = project;
|
|
93
93
|
|
|
94
94
|
const refreshToken = storage.get(name, "refreshToken");
|
|
95
|
+
const provider = storage.get(name, "provider");
|
|
95
96
|
|
|
96
97
|
oauth
|
|
97
|
-
.post("/oauth", { appId, refreshToken, projectId })
|
|
98
|
+
.post("/oauth", { appId, refreshToken, projectId, provider })
|
|
98
99
|
.then(({ data }) => {
|
|
99
100
|
const { refreshToken, accessToken } = data;
|
|
100
101
|
storage.set(name, "accessToken", accessToken);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Box from "@mui/material/Box";
|
|
2
2
|
import Link from "@mui/material/Link";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import
|
|
4
|
+
import RouterLink from "../../routes/components/router-link";
|
|
5
5
|
|
|
6
6
|
export default function BreadcrumbsLink({ link, activeLast, disabled }) {
|
|
7
7
|
const styles = {
|