Skip to content

Commit

Permalink
Update assembly-line-shared dependency, issue AL-200
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali authored and MichalMed committed Feb 6, 2024
1 parent 9f68512 commit bff79b4
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 100 deletions.
146 changes: 90 additions & 56 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.9",
"@mui/material": "^5.10.9",
"@opendata-mvcr/assembly-line-shared": "^0.3.2",
"@datagov-cz/assembly-line-shared": "^0.3.2",
"@tanstack/react-query": "^4.10.1",
"@tanstack/react-query-devtools": "^4.10.1",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion src/app/variables.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getEnvInstance } from "@opendata-mvcr/assembly-line-shared";
import { getEnvInstance } from "@datagov-cz/assembly-line-shared";

type LocalVars =
| "PUBLIC_URL"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Identity.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useAuth } from "@opendata-mvcr/assembly-line-shared";
import { useAuth } from "@datagov-cz/assembly-line-shared";

const Identity: React.FC = () => {
const {
Expand Down
2 changes: 1 addition & 1 deletion src/components/project/MyRecentProjects.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo } from "react";
import { useProjects } from "../../api/ProjectAPI";
import { useAuth } from "@opendata-mvcr/assembly-line-shared";
import { useAuth } from "@datagov-cz/assembly-line-shared";
import ProjectCardExpandable from "./ProjectCard";
import { Box } from "@mui/material";
import t from "../i18n";
Expand Down
14 changes: 7 additions & 7 deletions src/components/project/RenameProjectForm.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { useQueryClient } from "@tanstack/react-query";
import React, { useCallback } from "react";
import { useIntl } from "react-intl";
import { ToastPromiseParams } from "react-toastify";
import { EditProjectPayload, ProjectData } from "../../@types";
import t from "../i18n";
import { editProjectName } from "../../api/VocabularyApi";
import getIdFromIri from "../../utils/getIdFromIri";
import { notifyPromise } from "../common/Notify";
import FormDialog from "../form/FormDialog";
import Hidden from "../form/Hidden";
import TextField from "../form/TextField";
import { notifyPromise } from "../common/Notify";
import { createVocabulary, editProjectName } from "../../api/VocabularyApi";
import { useQueryClient } from "@tanstack/react-query";
import getIdFromIri from "../../utils/getIdFromIri";
import { ToastPromiseParams } from "react-toastify";
import { useIntl } from "react-intl";
import t from "../i18n";

interface RenameProjectForm {
project: ProjectData;
Expand Down
32 changes: 3 additions & 29 deletions src/components/user/UserProfiles.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useAuth } from "@datagov-cz/assembly-line-shared";
import { Avatar, Box, Menu, MenuItem, Typography } from "@mui/material";
import { useAuth } from "@opendata-mvcr/assembly-line-shared";
import IconButton from "@mui/material/IconButton";
import React from "react";
import { stringAvatar, stringToColor } from "../../utils/UserUtils";
import { UserData } from "../../@types";
import VerifiedOutlinedIcon from "@mui/icons-material/VerifiedOutlined";
import { stringAvatar, stringToColor } from "../../utils/UserUtils";
import { CenteredSpacedOutBox } from "../common/CenteredSpacedOutBox";
import IconButton from "@mui/material/IconButton";
import t from "../i18n";

export const MyUserProfile: React.FC = () => {
Expand Down Expand Up @@ -40,31 +39,6 @@ export const MyUserProfile: React.FC = () => {
</IconButton>
<Box sx={{ marginRight: 3 }}>
<Typography variant={"body2"}>{fullName}</Typography>
<Box
sx={{
display: "flex",
}}
>
<VerifiedOutlinedIcon
sx={{
color: "#046021",
marginRight: "2px",
width: "16px",
height: "16px",
}}
/>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<Typography variant={"caption"} color={"#046021"}>
0 {t`publications`}
</Typography>
</Box>
</Box>
</Box>
</CenteredSpacedOutBox>
<Menu
Expand Down
1 change: 0 additions & 1 deletion src/i18n/common.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
"myRecentProjects": "Poslední úpravy",
"searchVocabulary": "Zadejte hledaný slovník",
"search": "Hledat",
"publications": "publikací",
"addToProject": "Přidat slovník"
}
1 change: 0 additions & 1 deletion src/i18n/common.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
"myRecentProjects": "Last edited",
"searchVocabulary": "Enter vocabulary name",
"search": "Search",
"publications": "publications",
"addToProject": "Add vocabulary"
}
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import ReactDOM from "react-dom/client";
import reportWebVitals from "./reportWebVitals";
import { setProcessEnv, Auth } from "@opendata-mvcr/assembly-line-shared";
import { setProcessEnv, Auth } from "@datagov-cz/assembly-line-shared";
import { ErrorBoundary } from "react-error-boundary";

setProcessEnv(process.env);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Ajax.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API_URL } from "../app/variables";
import axios from "axios";
import { getToken } from "@opendata-mvcr/assembly-line-shared";
import { getToken } from "@datagov-cz/assembly-line-shared";
import Constants from "../app/Constants";

export class Ajax {
Expand Down

0 comments on commit bff79b4

Please sign in to comment.