fix: comments
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
4029441cea
commit
b5c977d3aa
@@ -35,8 +35,6 @@ function FormulaBar(properties: FormulaBarProps) {
|
|||||||
} = properties;
|
} = properties;
|
||||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||||
|
|
||||||
const handleMenuChange = (_option: string): void => {};
|
|
||||||
|
|
||||||
const handleMenuOpenChange = (isOpen: boolean): void => {
|
const handleMenuOpenChange = (isOpen: boolean): void => {
|
||||||
setIsMenuOpen(isOpen);
|
setIsMenuOpen(isOpen);
|
||||||
};
|
};
|
||||||
@@ -45,7 +43,6 @@ function FormulaBar(properties: FormulaBarProps) {
|
|||||||
<Container>
|
<Container>
|
||||||
<AddressContainer $active={isMenuOpen}>
|
<AddressContainer $active={isMenuOpen}>
|
||||||
<FormulaBarMenu
|
<FormulaBarMenu
|
||||||
onChange={handleMenuChange}
|
|
||||||
onMenuOpenChange={handleMenuOpenChange}
|
onMenuOpenChange={handleMenuOpenChange}
|
||||||
openDrawer={properties.openDrawer}
|
openDrawer={properties.openDrawer}
|
||||||
canEdit={properties.canEdit}
|
canEdit={properties.canEdit}
|
||||||
@@ -154,7 +151,6 @@ const AddressContainer = styled("div")<{ $active?: boolean }>`
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
flex-grow: row;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -163,7 +159,8 @@ const AddressContainer = styled("div")<{ $active?: boolean }>`
|
|||||||
background-color: ${(props) =>
|
background-color: ${(props) =>
|
||||||
props.$active ? theme.palette.action.selected : "transparent"};
|
props.$active ? theme.palette.action.selected : "transparent"};
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: ${theme.palette.grey["100"]};
|
background-color: ${(props) =>
|
||||||
|
props.$active ? theme.palette.action.selected : theme.palette.grey["100"]};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -176,7 +173,7 @@ const CellBarAddress = styled("div")`
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
background-color: "transparent";
|
background-color: transparent;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledIcon = styled("div")`
|
const StyledIcon = styled("div")`
|
||||||
@@ -184,7 +181,7 @@ const StyledIcon = styled("div")`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 4px 2px;
|
padding: 4px 2px;
|
||||||
background-color: "transparent";
|
background-color: transparent;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const EditorWrapper = styled("div")`
|
const EditorWrapper = styled("div")`
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import { parseRangeInSheet } from "../Editor/util";
|
|||||||
|
|
||||||
type FormulaBarMenuProps = {
|
type FormulaBarMenuProps = {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
onChange: (option: string) => void;
|
|
||||||
onMenuOpenChange: (isOpen: boolean) => void;
|
onMenuOpenChange: (isOpen: boolean) => void;
|
||||||
openDrawer: () => void;
|
openDrawer: () => void;
|
||||||
canEdit: boolean;
|
canEdit: boolean;
|
||||||
@@ -81,7 +80,6 @@ const FormulaBarMenu = (properties: FormulaBarMenuProps) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
properties.onUpdate();
|
properties.onUpdate();
|
||||||
properties.onChange(definedName.name);
|
|
||||||
handleMenuClose();
|
handleMenuClose();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user