-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove findDOMNode usage from the inserter (#11363)
- Loading branch information
1 parent
9c8923a
commit 6919650
Showing
12 changed files
with
44 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 1 addition & 75 deletions
76
...it-post/src/components/sidebar/plugin-post-publish-panel/test/__snapshots__/index.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PluginPostPublishPanel renders fill properly 1`] = ` | ||
<PanelBody | ||
className="my-plugin-post-publish-panel" | ||
initialOpen={true} | ||
key="1---0/.0" | ||
title="My panel title" | ||
> | ||
<div | ||
className="components-panel__body my-plugin-post-publish-panel is-opened" | ||
> | ||
<h2 | ||
className="components-panel__body-title" | ||
> | ||
<Button | ||
aria-expanded={true} | ||
className="components-panel__body-toggle" | ||
onClick={[Function]} | ||
> | ||
<button | ||
aria-expanded={true} | ||
className="components-button components-panel__body-toggle" | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
<SVG | ||
className="components-panel__arrow" | ||
height="24px" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
className="components-panel__arrow" | ||
focusable="false" | ||
height="24px" | ||
role="img" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<G> | ||
<g> | ||
<Path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
> | ||
<path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
/> | ||
</Path> | ||
</g> | ||
</G> | ||
<G> | ||
<g> | ||
<Path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
> | ||
<path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
/> | ||
</Path> | ||
</g> | ||
</G> | ||
</svg> | ||
</SVG> | ||
My panel title | ||
</button> | ||
</Button> | ||
</h2> | ||
My panel content | ||
</div> | ||
</PanelBody> | ||
`; | ||
exports[`PluginPostPublishPanel renders fill properly 1`] = `"<div class=\\"components-panel__body my-plugin-post-publish-panel is-opened\\"><h2 class=\\"components-panel__body-title\\"><button type=\\"button\\" aria-expanded=\\"true\\" class=\\"components-button components-panel__body-toggle\\"><svg class=\\"components-panel__arrow\\" width=\\"24px\\" height=\\"24px\\" viewBox=\\"0 0 24 24\\" xmlns=\\"http://www.w3.org/2000/svg\\" role=\\"img\\" aria-hidden=\\"true\\" focusable=\\"false\\"><g><path fill=\\"none\\" d=\\"M0,0h24v24H0V0z\\"></path></g><g><path d=\\"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z\\"></path></g></svg>My panel title</button></h2>My panel content</div>"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 1 addition & 75 deletions
76
...dit-post/src/components/sidebar/plugin-pre-publish-panel/test/__snapshots__/index.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PluginPrePublishPanel renders fill properly 1`] = ` | ||
<PanelBody | ||
className="my-plugin-pre-publish-panel" | ||
initialOpen={true} | ||
key="1---0/.0" | ||
title="My panel title" | ||
> | ||
<div | ||
className="components-panel__body my-plugin-pre-publish-panel is-opened" | ||
> | ||
<h2 | ||
className="components-panel__body-title" | ||
> | ||
<Button | ||
aria-expanded={true} | ||
className="components-panel__body-toggle" | ||
onClick={[Function]} | ||
> | ||
<button | ||
aria-expanded={true} | ||
className="components-button components-panel__body-toggle" | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
<SVG | ||
className="components-panel__arrow" | ||
height="24px" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
className="components-panel__arrow" | ||
focusable="false" | ||
height="24px" | ||
role="img" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<G> | ||
<g> | ||
<Path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
> | ||
<path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
/> | ||
</Path> | ||
</g> | ||
</G> | ||
<G> | ||
<g> | ||
<Path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
> | ||
<path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
/> | ||
</Path> | ||
</g> | ||
</G> | ||
</svg> | ||
</SVG> | ||
My panel title | ||
</button> | ||
</Button> | ||
</h2> | ||
My panel content | ||
</div> | ||
</PanelBody> | ||
`; | ||
exports[`PluginPrePublishPanel renders fill properly 1`] = `"<div class=\\"components-panel__body my-plugin-pre-publish-panel is-opened\\"><h2 class=\\"components-panel__body-title\\"><button type=\\"button\\" aria-expanded=\\"true\\" class=\\"components-button components-panel__body-toggle\\"><svg class=\\"components-panel__arrow\\" width=\\"24px\\" height=\\"24px\\" viewBox=\\"0 0 24 24\\" xmlns=\\"http://www.w3.org/2000/svg\\" role=\\"img\\" aria-hidden=\\"true\\" focusable=\\"false\\"><g><path fill=\\"none\\" d=\\"M0,0h24v24H0V0z\\"></path></g><g><path d=\\"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z\\"></path></g></svg>My panel title</button></h2>My panel content</div>"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.