Skip to content

Commit

Permalink
Remove circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcauliffe committed Nov 4, 2024
1 parent a9863a6 commit 113b8c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Form/WysiwygControls/InlineStyleToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RichUtils } from 'draft-js'
import 'draft-js/dist/Draft.css'

// FPCC
import WysiwygControls from 'components/Form/WysiwygControls'
import Button from 'components/Form/WysiwygControls/Button'

function InlineStyleToolbar({ editorState, onChange }) {
const currentStyle = editorState.getCurrentInlineStyle()
Expand All @@ -16,12 +16,12 @@ function InlineStyleToolbar({ editorState, onChange }) {

return (
<span className="flex border-b border-charcoal-100 text-xl text-charcoal-700">
<WysiwygControls.Button
<Button
onClickHandler={(event) => toggleInlineStyle(event, 'BOLD')}
label={<span className="font-bold">B</span>}
active={currentStyle.has('BOLD')}
/>
<WysiwygControls.Button
<Button
onClickHandler={(event) => toggleInlineStyle(event, 'ITALIC')}
label={<span className="italic">I</span>}
active={currentStyle.has('ITALIC')}
Expand Down

0 comments on commit 113b8c5

Please sign in to comment.