diff options
| author | Elad Rosenheim <eladroz@users.noreply.github.com> | 2024-04-23 17:55:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 17:55:24 +0300 |
| commit | 7e40aa188979311e706154dfcf52e47975f99cde (patch) | |
| tree | 1368cc922524b5b1eb7eef4684fccab0fbc3628d /src/pages/blobs/_components/ShapeEditor.tsx | |
| parent | 5396de306695226c939384598410761297739fef (diff) | |
Revalidation & Blobs pages, tweaks (#8)
* added blobs.astro page
* updated blobs
* updated index.astro and npm dependencies
* updated api blobs
* Revalidation example WIP
* Revalidation by tag example
* Update revalidation.astro
* Image CDN fixes
* Text fixes
* updated colors (#9)
* updated colors
* updated README.md
* updated Layout.astro bg color
* updated template colors
* Inline Inter font
* Inline noise.png
* Remove remaining "Astro.js"
---------
Co-authored-by: TomasBankauskas <tbdizainas@gmail.com>
Diffstat (limited to 'src/pages/blobs/_components/ShapeEditor.tsx')
| -rw-r--r-- | src/pages/blobs/_components/ShapeEditor.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pages/blobs/_components/ShapeEditor.tsx b/src/pages/blobs/_components/ShapeEditor.tsx new file mode 100644 index 0000000..9a339cc --- /dev/null +++ b/src/pages/blobs/_components/ShapeEditor.tsx @@ -0,0 +1,18 @@ +import { useState } from 'react'; +import NewShape from './NewShape.tsx'; +import StoredShapes from './StoredShapes.tsx'; + +export default function ShapeEditor() { + const [lastMutationTime, setLastMutationTime] = useState<number>(null); + + return ( + <div className="flex flex-col gap-8 md:flex-row"> + <div className="flex-1"> + <NewShape setLastMutationTime={setLastMutationTime} /> + </div> + <div className="flex-1"> + <StoredShapes lastMutationTime={lastMutationTime} /> + </div> + </div> + ); +} |
