Skip to content

Commit 14899ea

Browse files
committed
fixed clear workspace button
1 parent 86bbc5d commit 14899ea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/src/components/left/ComponentPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const ComponentPanel = (): JSX.Element => {
8282
};
8383

8484
const handleNameSubmit = () => {
85-
let letters = /[a-z]/;
85+
let letters = /[a-zA-Z]/;
8686
if (!compName.charAt(0).match(letters)) {
8787
triggerError('letters');
8888
return;

app/src/components/right/ProjectManager.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const ProjectManager = () => {
7171
<ListItemText
7272
primary={'Yes, delete all project data'}
7373
style={{ textAlign: 'center' }}
74+
onClick={closeModal}
7475
/>
7576
</ListItem>
7677
</List>

app/src/components/right/SimpleModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const SimpleModal = (props: any) => {
4646
<Modal
4747
aria-labelledby="simple-modal-title"
4848
aria-describedby="simple-modal-description"
49-
onClose={closeModal}
5049
open={open}
50+
onClose={closeModal}
5151
>
5252
<div
5353
style={{

0 commit comments

Comments
 (0)