Skip to content

Commit

Permalink
Merge pull request #131 from westonruter/fix/gutenberg-alignment
Browse files Browse the repository at this point in the history
Add support for Gutenberg block alignment
  • Loading branch information
westonruter authored Jul 4, 2020
2 parents e652901 + c1152ef commit 15e3e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
PanelBody,
PanelRow,
} from '@wordpress/components';
import { Fragment, createRef, useEffect, useState } from '@wordpress/element';
import { Fragment, useRef, useEffect, useState } from '@wordpress/element';
import * as BlockEditor from '@wordpress/block-editor';

/**
Expand Down Expand Up @@ -46,7 +46,7 @@ const extendCodeBlockWithSyntaxHighlighting = (settings) => {

const HighlightablePlainText = (props_) => {
const { highlightedLines, ...props } = props_;
const plainTextRef = createRef();
const plainTextRef = useRef();
const [styles, setStyles] = useState({});

useEffect(() => {
Expand Down

0 comments on commit 15e3e5d

Please sign in to comment.