Commit b3d7184c authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update to use shared icons where possible

parent 9b09f42b
// @ts-nocheck // @ts-nocheck
import {
cancel,
caretLeft,
caretRight,
caution,
hide,
highlight,
note,
show,
} from '@hypothesis/frontend-shared/lib/icons';
// Different variant than shared icon
import annotateIcon from '../images/icons/annotate.svg'; import annotateIcon from '../images/icons/annotate.svg';
import cancelIcon from '../images/icons/cancel.svg'; // Not in shared icon set
import cautionIcon from '../images/icons/caution.svg';
import caretLeftIcon from '../images/icons/caret-left.svg';
import caretRightIcon from '../images/icons/caret-right.svg';
import hideIcon from '../images/icons/hide.svg';
import highlightIcon from '../images/icons/highlight.svg';
import noteIcon from '../images/icons/note.svg';
import pointerIcon from '../images/icons/pointer.svg'; import pointerIcon from '../images/icons/pointer.svg';
import showIcon from '../images/icons/show.svg';
/** /**
* Set of icons used by the annotator part of the application via the `SvgIcon` * Set of icons used by the annotator part of the application via the `SvgIcon`
...@@ -17,13 +22,13 @@ import showIcon from '../images/icons/show.svg'; ...@@ -17,13 +22,13 @@ import showIcon from '../images/icons/show.svg';
*/ */
export default { export default {
annotate: annotateIcon, annotate: annotateIcon,
cancel: cancelIcon, cancel,
caution: cautionIcon, caution,
'caret-left': caretLeftIcon, 'caret-left': caretLeft,
'caret-right': caretRightIcon, 'caret-right': caretRight,
hide: hideIcon, hide,
highlight: highlightIcon, highlight,
note: noteIcon, note,
pointer: pointerIcon, pointer: pointerIcon,
show: showIcon, show,
}; };
Markdown is supported
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