Skip to content

Commit

Permalink
Update InterfaceNotification.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali committed Oct 9, 2023
1 parent 90beb72 commit a4cf09e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/InterfaceNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Environment } from "../config/Environment";
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import green from "@mui/material/colors/green";

import { getToken } from "@opendata-mvcr/assembly-line-shared";
const theme = createTheme({
palette: {
success: { main: green[600] },
Expand Down Expand Up @@ -91,7 +91,10 @@ export default class InterfaceNotification extends React.Component<
AppSettings.contextEndpoint +
"?query=select%20*%20where%20%7B%3Fs%20%3Fp%20%3Fo.%7D%20limit%201",
{
headers: { Accept: "application/json" },
headers: {
Accept: "application/json",
...(Environment.auth && { Authorization: `${getToken()}` }),
},
method: "GET",
signal,
}
Expand Down

0 comments on commit a4cf09e

Please sign in to comment.