fix: copilot's suggestions
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
19c115b32f
commit
35323df20e
@@ -94,8 +94,11 @@ function SheetTab(props: SheetTabProps) {
|
|||||||
const handleSave = () => {
|
const handleSave = () => {
|
||||||
if (editingName.trim() !== "") {
|
if (editingName.trim() !== "") {
|
||||||
props.onRenamed(editingName.trim());
|
props.onRenamed(editingName.trim());
|
||||||
|
setIsEditing(false);
|
||||||
|
} else {
|
||||||
|
setEditingName(name);
|
||||||
|
setIsEditing(false);
|
||||||
}
|
}
|
||||||
setIsEditing(false);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
@@ -153,18 +156,14 @@ function SheetTab(props: SheetTabProps) {
|
|||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
/>
|
/>
|
||||||
<StyledButton disableRipple={true} disabled={true} $active={false}>
|
<StyledButton disableRipple disabled $active={false}>
|
||||||
<ChevronDown />
|
<ChevronDown />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Name>{name}</Name>
|
<Name>{name}</Name>
|
||||||
<StyledButton
|
<StyledButton onClick={handleOpen} disableRipple $active={open}>
|
||||||
onClick={handleOpen}
|
|
||||||
disableRipple={true}
|
|
||||||
$active={open}
|
|
||||||
>
|
|
||||||
<ChevronDown />
|
<ChevronDown />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</>
|
</>
|
||||||
@@ -361,6 +360,7 @@ const StyledInput = styled(Input)`
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
& .MuiInputBase-input {
|
& .MuiInputBase-input {
|
||||||
font-family: Inter;
|
font-family: Inter;
|
||||||
|
background-color: ${theme.palette.common.white};
|
||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
padding: 6px 0px;
|
padding: 6px 0px;
|
||||||
outline: 1px solid ${theme.palette.primary.main};
|
outline: 1px solid ${theme.palette.primary.main};
|
||||||
|
|||||||
Reference in New Issue
Block a user