mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 14:09:17 +00:00
💄 Remove deprecated StoryWrapper helper component
This commit is contained in:
parent
ebda46f748
commit
a5dd2683cd
@ -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…
x
Reference in New Issue
Block a user