From 0b26fd1104e794cadd2a638aa3e43f3e7ad9a36a Mon Sep 17 00:00:00 2001 From: salam dalloul Date: Fri, 9 Feb 2024 14:42:38 +0100 Subject: [PATCH 1/4] #255 enable notes when exported --- .../src/components/Widgets/NotesFomList.tsx | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/Widgets/NotesFomList.tsx b/frontend/src/components/Widgets/NotesFomList.tsx index 0bd21e61..e0ec3384 100644 --- a/frontend/src/components/Widgets/NotesFomList.tsx +++ b/frontend/src/components/Widgets/NotesFomList.tsx @@ -29,7 +29,7 @@ const TimeLineIcon = () => { } const NoteDetails = (props: any) => { - const { extraData, isDisabled } = props + const { extraData } = props const [noteList, setNoteList] = useState([]) const [refresh, setRefresh] = useState(false) @@ -48,24 +48,21 @@ const NoteDetails = (props: any) => { return ( - { - !isDisabled && - - - } - + + + Date: Fri, 9 Feb 2024 14:43:26 +0100 Subject: [PATCH 2/4] #255 enable notes when exported --- frontend/src/Pages/StatementDetails.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/Pages/StatementDetails.tsx b/frontend/src/Pages/StatementDetails.tsx index a583090f..ac8652a6 100644 --- a/frontend/src/Pages/StatementDetails.tsx +++ b/frontend/src/Pages/StatementDetails.tsx @@ -320,7 +320,6 @@ const StatementDetails = () => { extraData={{ connectivity_statement_id: statement.id, }} - isDisabled={isDisabled} /> From f7a5aa7e973fe7384afa9293e87674295b5c3f6e Mon Sep 17 00:00:00 2001 From: salam dalloul Date: Fri, 9 Feb 2024 16:51:09 +0100 Subject: [PATCH 3/4] fix eslint error --- frontend/src/components/Widgets/TextfieldWithChips.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/components/Widgets/TextfieldWithChips.tsx b/frontend/src/components/Widgets/TextfieldWithChips.tsx index 87ce8174..7fe0828c 100644 --- a/frontend/src/components/Widgets/TextfieldWithChips.tsx +++ b/frontend/src/components/Widgets/TextfieldWithChips.tsx @@ -2,13 +2,10 @@ import React from "react"; import TextField from "@mui/material/TextField"; import FormControl from "@mui/material/FormControl"; import { Autocomplete, styled } from "@mui/material"; -import Chip from "@mui/material/Chip"; -import ClearOutlinedIcon from "@mui/icons-material/ClearOutlined"; -import { vars } from "../../theme/variables"; import Box from "@mui/material/Box"; import CustomTextFieldChip from "./CustomTextFieldChip"; -const StyledInput = styled(TextField)(({ theme }) => ({ +const StyledInput = styled(TextField)(() => ({ "& .MuiInputBase-root": { boxShadow: 'none', @@ -49,7 +46,6 @@ const TextfieldWithChips = ({ data.map( ( ele: { id: number; label: string; enableClick: boolean }, - index: number, ) => ( Date: Fri, 9 Feb 2024 16:54:56 +0100 Subject: [PATCH 4/4] fix eslint error --- frontend/src/components/StatementWithProvenances.tsx | 1 - frontend/src/components/Widgets/CustomEntitiesDropdown.tsx | 3 --- 2 files changed, 4 deletions(-) diff --git a/frontend/src/components/StatementWithProvenances.tsx b/frontend/src/components/StatementWithProvenances.tsx index bd2ef5c1..bf95a7f4 100644 --- a/frontend/src/components/StatementWithProvenances.tsx +++ b/frontend/src/components/StatementWithProvenances.tsx @@ -1,7 +1,6 @@ import React from "react"; import {Box} from "@mui/material"; import StatementForm from "./Forms/StatementForm"; -import ProvenancesForm from "./Forms/ProvenanceForm"; const StatementWithProvenances = ({ statement, background = "#fff", refreshStatement, isDisabled } : any) => { diff --git a/frontend/src/components/Widgets/CustomEntitiesDropdown.tsx b/frontend/src/components/Widgets/CustomEntitiesDropdown.tsx index fb887e0b..67029ed8 100644 --- a/frontend/src/components/Widgets/CustomEntitiesDropdown.tsx +++ b/frontend/src/components/Widgets/CustomEntitiesDropdown.tsx @@ -18,7 +18,6 @@ import { } from "@mui/material"; import {CheckedItemIcon, CheckedItemIconBG, UncheckedItemIcon} from "../icons"; import HoveredOptionContent from "./HoveredOptionContent"; -import ClearOutlinedIcon from "@mui/icons-material/ClearOutlined"; import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown"; import ArrowDropUpIcon from "@mui/icons-material/ArrowDropUp"; import theme from "../../theme/Theme"; @@ -209,8 +208,6 @@ export default function CustomEntitiesDropdown({ chipsNumber = 2, postProcessOptions = false, refreshStatement, - statement, - fieldName = "", getPreLevelSelectedValues, areConnectionsExplicit, minWidth = '',