mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 03:28:25 -05:00
💄 Remove deprecated StoryWrapper helper component
This commit is contained in:
parent
ebda46f748
commit
a5dd2683cd
2 changed files with 1 additions and 12 deletions
|
@ -28,5 +28,4 @@
|
||||||
:storybook #js {:StoryGrid sb/story-grid*
|
:storybook #js {:StoryGrid sb/story-grid*
|
||||||
:StoryGridCell sb/story-grid-cell*
|
:StoryGridCell sb/story-grid-cell*
|
||||||
:StoryGridRow sb/story-grid-row*
|
:StoryGridRow sb/story-grid-row*
|
||||||
:StoryHeader sb/story-header*
|
:StoryHeader sb/story-header*}})
|
||||||
:StoryWrapper sb/story-wrapper*}})
|
|
||||||
|
|
|
@ -12,16 +12,6 @@
|
||||||
(:require
|
(:require
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(mf/defc story-wrapper*
|
|
||||||
{::mf/props :obj}
|
|
||||||
[{:keys [theme children]}]
|
|
||||||
[:article {:class (stl/css :story-wrapper)}
|
|
||||||
(if (some? theme)
|
|
||||||
[:section {:class theme} children]
|
|
||||||
[*
|
|
||||||
[:section {:class "default"} children]
|
|
||||||
[:section {:class "light"} children]])])
|
|
||||||
|
|
||||||
(mf/defc story-grid*
|
(mf/defc story-grid*
|
||||||
{::mf/props :obj}
|
{::mf/props :obj}
|
||||||
[{:keys [children size style] :rest other}]
|
[{:keys [children size style] :rest other}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue