Skip to content

Commit

Permalink
Buttons audit
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Feb 17, 2025
1 parent 1712a52 commit b109f17
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/app/CitationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function CitationModal({ citation }) {
<Button
aria-label="Copy to clipboard"
variant="contained"
color="secondary"
onClick={citation.copyToClipboard}
style={{ marginRight: 10 }}
>
Expand Down
1 change: 1 addition & 0 deletions src/app/PartitionEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ function PartitionOnCard({ alignment }) {
<Button
aria-label="Save"
variant="contained"
color="secondary"
disabled={!hasChange}
onClick={onClickSave}
>
Expand Down
27 changes: 20 additions & 7 deletions src/app/components/ErrorDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,36 @@ export default function ErrorDialog({ error, onClose, needReload, title }) {

const CloseAction = (
<DialogActions>
<Button onClick={closeHandler} variant="contained" color="primary">
<Button onClick={closeHandler} variant="outlined">
{closeMessage}
</Button>
</DialogActions>
);

const Actions = reported ? CloseAction : (
const Actions = reported ? (
CloseAction
) : (
<DialogActions>
<Button onClick={closeHandler} color="secondary">
{ closeMessage }
</Button>
<Button href={mailtoContent} onClick={handleReportToMail} variant="contained" color="primary" autoFocus>
<Button
href={mailtoContent}
onClick={handleReportToMail}
variant="contained"
color="secondary"
autoFocus
>
Report issue on mail
</Button>
<Button onClick={handleReportToGithub} variant="contained" color="primary" autoFocus>
<Button
onClick={handleReportToGithub}
variant="contained"
color="secondary"
autoFocus
>
Report issue on GitHub
</Button>
<Button onClick={closeHandler} variant="outlined">
{closeMessage}
</Button>
</DialogActions>
);

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/ModifiedDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ModifiedDialog({ show, onClose, messages }) {
</Box>
</DialogContent>
<DialogActions>
<Button onClick={onClose} variant="contained" color="primary">
<Button onClick={onClose} variant="outlined">
Close
</Button>
</DialogActions>
Expand Down

0 comments on commit b109f17

Please sign in to comment.