Lint: object-curly-spacing (error) (#4198)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-01 08:45:45 -04:00
1 parent 0759b80435
commit 41863e87ce
89 files changed
+230 -216

No files matched your search

@@ -47,7 +47,7 @@ jest.mock("electron", () => ({
AppPaths.init();
const mockHotbars: {[id: string]: any} = {
const mockHotbars: { [id: string]: any } = {
"1": {
id: "1",
name: "Default",
@@ -74,7 +74,7 @@ export class HotbarEntityIcon extends React.Component<Props> {
return null;
}
const className = cssNames("led", { online: this.props.entity.status.phase === LensKubernetesClusterStatus.CONNECTED}); // TODO: make it more generic
const className = cssNames("led", { online: this.props.entity.status.phase === LensKubernetesClusterStatus.CONNECTED }); // TODO: make it more generic
return <div className={className} />;
}
@@ -65,7 +65,7 @@ function onMenuItemClick(menuItem: CatalogEntityContextMenu) {
}
}
export const HotbarIcon = observer(({menuItems = [], size = 40, tooltip, ...props}: HotbarIconProps) => {
export const HotbarIcon = observer(({ menuItems = [], size = 40, tooltip, ...props }: HotbarIconProps) => {
const { uid, title, src, material, active, className, source, disabled, onMenuOpen, onClick, children, ...rest } = props;
const id = `hotbarIcon-${uid}`;
const [menuOpen, setMenuOpen] = useState(false);
@@ -104,7 +104,7 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, tooltip, ...prop
className="HotbarIconMenu"
isOpen={menuOpen}
toggleEvent="contextmenu"
position={{right: true, bottom: true }} // FIXME: position does not work
position={{ right: true, bottom: true }} // FIXME: position does not work
open={() => {
onMenuOpen?.();
toggleMenu();