-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05ed8b1
commit 51cf1c9
Showing
36 changed files
with
635 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 9 additions & 19 deletions
28
MythicReactUI/src/components/MythicComponents/MythicDisplayTextDialog.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
import React from 'react'; | ||
import Button from '@mui/material/Button'; | ||
import DialogActions from '@mui/material/DialogActions'; | ||
import DialogContent from '@mui/material/DialogContent'; | ||
import DialogTitle from '@mui/material/DialogTitle'; | ||
import {MythicDialog} from './MythicDialog'; | ||
import {MythicDialog, MythicModifyStringDialog} from './MythicDialog'; | ||
|
||
export function MythicDisplayTextDialog(props) { | ||
return ( | ||
<MythicDialog fullWidth={props.fullWidth === null ? false : props.fullWidth} maxWidth={props.maxWidth === null ? "sm" : props.maxWidth} open={props.open} onClose={()=>{props.onClose()}} innerDialog={ | ||
<React.Fragment> | ||
<DialogTitle id="form-dialog-title">{props.title}</DialogTitle> | ||
<DialogContent dividers={true}> | ||
<pre style={{whiteSpace: "pre-wrap"}}> | ||
{props.value} | ||
</pre> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button onClick={props.onClose} variant="contained" color="primary"> | ||
Close | ||
</Button> | ||
</DialogActions> | ||
</React.Fragment> | ||
<MythicDialog fullWidth={props.fullWidth === null ? false : props.fullWidth} | ||
maxWidth={props.maxWidth === null ? "sm" : props.maxWidth} | ||
open={props.open} | ||
onClose={()=>{props.onClose()}} innerDialog={ | ||
<MythicModifyStringDialog title={props.title} | ||
onClose={props.onClose} | ||
value={props.value} | ||
maxRows={20} /> | ||
} /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.