Skip to content

Commit

Permalink
work on the project dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Jun 21, 2023
1 parent 45cc942 commit e84577f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
24 changes: 14 additions & 10 deletions src/Components/Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function Dialog({
headerText,
isDialogDisplayed,
setIsDialogDisplayed,
hideActionButton = true,
content,
actionTitle,
actionCb,
Expand Down Expand Up @@ -75,16 +76,19 @@ export default function Dialog({
</Typography>
{content}
</DialogContent>
<DialogActions
sx={{
overflowY: 'hidden',
padding: '0em 0em 2em 0em',
display: 'flex',
justifyContent: 'center',
}}
>
<RectangularButton title={actionTitle} icon={actionIcon} onClick={actionCb}/>
</DialogActions>
{!hideActionButton &&
<DialogActions
sx={{
overflowY: 'hidden',
padding: '0em 0em 2em 0em',
display: 'flex',
justifyContent: 'center',
}}
>
<RectangularButton title={actionTitle} icon={actionIcon} onClick={actionCb}/>
</DialogActions>
}

</MuiDialog>
)
}
5 changes: 3 additions & 2 deletions src/Components/OpenModelControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen, org
isDialogDisplayed={isDialogDisplayed}
setIsDialogDisplayed={setIsDialogDisplayed}
actionTitle={'Open local file'}
hideActionButton={true}
actionIcon={<UploadIcon/>}
actionCb={openFile}
content={
Expand Down Expand Up @@ -234,15 +235,15 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen, org
&nbsp;to manage access to the project
</Box>
}
<Typography
{/* <Typography
variant='h6'
sx={{
marginTop: '1em',
fontSize: '.8em',
}}
>
* Local files cannot yet be saved or shared.
</Typography>
</Typography> */}
</Box>
}
/>
Expand Down

0 comments on commit e84577f

Please sign in to comment.