Skip to content

Commit

Permalink
Minor adjustments to PR#2137
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Feb 25, 2025
1 parent 6b198d8 commit 4e1f678
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
3 changes: 2 additions & 1 deletion client/src/components/Modals/ActionProjectCopy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function CopyProjectModal({
<div style={theme.typography.heading3}>{selectedProjectName}</div>
<div style={{ margin: "1.5rem 2.5rem 1.5rem 0.75rem" }}>
<input
placeholder="Name of Duplicated Project"
placeholder="Name of the duplicated project"
type="text"
id="duplicateName"
name="duplicateName"
Expand All @@ -75,6 +75,7 @@ export default function CopyProjectModal({
<Button
onClick={() => onClose("ok", duplicateProjectName)}
variant="primary"
disabled={!duplicateProjectName}
>
Create a Copy
</Button>
Expand Down
12 changes: 4 additions & 8 deletions client/src/components/Modals/ActionProjectSnapshot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export default function SnapshotProjectModal({
}) {
const theme = useTheme();
const classes = useStyles({ theme });
const [snapshotProjectName, setSnapshotProjectName] =
useState(selectedProjectName);
const [snapshotProjectName, setSnapshotProjectName] = useState("");

return (
<ModalDialog
Expand All @@ -55,7 +54,7 @@ export default function SnapshotProjectModal({
</div>
<div className={classes.subheading} style={{ width: "75%" }}>
<input
placeholder="Name of Snapshot Project"
placeholder="Name of the Snapshot"
type="text"
id="duplicateName"
name="duplicateName"
Expand All @@ -64,16 +63,13 @@ export default function SnapshotProjectModal({
/>
</div>
<div className={classes.buttonFlexBox}>
<Button
className={classes.buttonColor}
onClick={onClose}
variant="secondary"
>
<Button variant="secondary" onClick={onClose}>
Cancel
</Button>
<Button
onClick={() => onClose("ok", snapshotProjectName)}
variant="primary"
disabled={!snapshotProjectName}
>
Done
</Button>
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/Modals/ActionSnapshotRename.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function RenameSnapshotModal({
}) {
const theme = useTheme();
const classes = useStyles({ theme });
const [snapshotProjectName, setSnapshotProjectName] =
useState(selectedProjectName);
const [snapshotProjectName, setSnapshotProjectName] = useState("");

return (
<ModalDialog
Expand All @@ -51,14 +50,14 @@ export default function RenameSnapshotModal({
<div className={classes.container}>
<div className={classes.heading1}>
<MdCameraAlt className={classes.icon} />
Rename Snapshot
Rename Snapshot &quot;{selectedProjectName}&quot;
</div>
<div className={classes.subheading}>
Enter a new name for your snapshot
</div>
<div className={classes.subheading} style={{ width: "75%" }}>
<input
placeholder="Name of Duplicated Project"
placeholder="New project name for snapshot"
type="text"
id="duplicateName"
name="duplicateName"
Expand All @@ -77,6 +76,7 @@ export default function RenameSnapshotModal({
<Button
onClick={() => onClose("ok", snapshotProjectName)}
variant="primary"
disabled={!snapshotProjectName}
>
Done
</Button>
Expand Down

0 comments on commit 4e1f678

Please sign in to comment.