Undo ugly button styling

This commit is contained in:
ajnart
2023-01-06 11:18:47 +09:00
parent f2d45b67e7
commit 7df1717d14
3 changed files with 3 additions and 11 deletions

View File

@@ -11,7 +11,6 @@ import { useScreenSmallerThan } from '../../../../../hooks/useScreenSmallerThan'
import { useEditModeStore } from '../../../../Dashboard/Views/useEditModeStore';
import { AddElementAction } from '../AddElementAction/AddElementAction';
import { useColorTheme } from '../../../../../tools/color';
export const ToggleEditModeAction = () => {
const { enabled, toggleEditMode } = useEditModeStore();
@@ -56,15 +55,13 @@ export const ToggleEditModeAction = () => {
hideNotification('toggle-edit-mode');
}
};
const { primaryColor, secondaryColor } = useColorTheme();
const ToggleButtonDesktop = () => (
<Tooltip label={enabled ? t('button.enabled') : t('button.disabled')}>
<Button
onClick={() => toggleButtonClicked()}
variant="white"
radius="md"
color={secondaryColor}
variant="default"
style={{ height: 43 }}
>
{enabled ? <IconEditCircleOff /> : <IconEditCircle />}