Skip to content

Commit

Permalink
#255 enable notes when exported
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam-Dalloul committed Feb 9, 2024
1 parent e83d240 commit 0b26fd1
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions frontend/src/components/Widgets/NotesFomList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TimeLineIcon = () => {
</Box>
}
const NoteDetails = (props: any) => {
const { extraData, isDisabled } = props
const { extraData } = props
const [noteList, setNoteList] = useState<Note[]>([])
const [refresh, setRefresh] = useState(false)

Expand All @@ -48,24 +48,21 @@ const NoteDetails = (props: any) => {

return (
<Box display='flex' flexDirection='column' >
{
!isDisabled && <Box sx={{
...greyBgContainer,
padding: '0 8px 8px !important',
textAlign: 'center',
"& .MuiGrid-item":
{
paddingTop: 0
},
"& .MuiInputBase-root": {
background: '#fff',
borderRadius: '12px'
}
}}>
<NoteForm setRefresh={setRefresh} extraData={extraData} />
</Box>
}

<Box sx={{
...greyBgContainer,
padding: '0 8px 8px !important',
textAlign: 'center',
"& .MuiGrid-item":
{
paddingTop: 0
},
"& .MuiInputBase-root": {
background: '#fff',
borderRadius: '12px'
}
}}>
<NoteForm setRefresh={setRefresh} extraData={extraData} />
</Box>
<Timeline sx={{
"& .MuiTimelineItem-root": {
"&:before": {
Expand Down

0 comments on commit 0b26fd1

Please sign in to comment.