Skip to content
Snippets Groups Projects
Commit 15316676 authored by chris's avatar chris
Browse files

button style

parent 91d4161b
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
import React, { useContext, useMemo } from 'react';
import { WaxContext } from 'wax-prosemirror-core';
import styled, { css } from 'styled-components';
import { th, override } from '@pubsweet/ui-toolkit';
import MenuButton from '../../ui/buttons/MenuButton';
const activeStyles = css`
......@@ -32,9 +33,11 @@ const LeftSideButton = ({ view = {}, item }) => {
run(editorState, dispatch);
};
const isActive = !!(
active(state, activeViewId) && select(state, activeViewId)
);
// const isActive = !!(
// active(state, activeViewId) && select(state, activeViewId)
// );
const isActive = !!active(state, activeViewId);
let isDisabled = !select(state, activeViewId, activeView);
if (!isEditable) isDisabled = true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment