mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
♻️ Integrate new storage subsystem.
This commit is contained in:
parent
3d88749976
commit
ab944fb9ae
48 changed files with 950 additions and 632 deletions
|
@ -24,9 +24,9 @@
|
|||
|
||||
(let [shape (unchecked-get props "shape")
|
||||
{:keys [id x y width height rotation metadata]} shape
|
||||
uri (cfg/resolve-media-path (:path metadata))
|
||||
uri (cfg/resolve-file-media metadata)
|
||||
embed-resources? (mf/use-ctx muc/embed-ctx)
|
||||
data-uri (mf/use-state (when (not embed-resources?) uri))]
|
||||
data-uri (mf/use-state (when (not embed-resources?) uri))]
|
||||
|
||||
(mf/use-effect
|
||||
(mf/deps uri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue