diff --git a/packages/web/components/templates/article/HighlightsModal.tsx b/packages/web/components/templates/article/HighlightsModal.tsx index e6e5bdd61..9dba75ab6 100644 --- a/packages/web/components/templates/article/HighlightsModal.tsx +++ b/packages/web/components/templates/article/HighlightsModal.tsx @@ -25,6 +25,8 @@ import { Dropdown, DropdownOption } from '../../elements/DropdownElements' import { SetLabelsModal } from './SetLabelsModal' import { Label } from '../../../lib/networking/fragments/labelFragment' import { setLabelsForHighlight } from '../../../lib/networking/mutations/setLabelsForHighlight' +import { updateHighlightMutation } from '../../../lib/networking/mutations/updateHighlightMutation' +import { showErrorToast, showSuccessToast } from '../../../lib/toastHelpers' type HighlightsModalProps = { highlights: Highlight[] @@ -36,9 +38,8 @@ type HighlightsModalProps = { export function HighlightsModal(props: HighlightsModalProps): JSX.Element { const [showConfirmDeleteHighlightId, setShowConfirmDeleteHighlightId] = useState(undefined) - const [labelsTarget, setLabelsTarget] = useState( - undefined - ) + const [labelsTarget, setLabelsTarget] = + useState(undefined) const [, updateState] = useState({}) return ( @@ -248,7 +249,32 @@ const TextEditArea = (props: TextEditAreaProps): JSX.Element => { > Cancel - + )