Skip to content

Commit

Permalink
Share work page form set up
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyG11 committed Jan 19, 2024
1 parent aadddd0 commit fa8d883
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions components/Profile/BlockDisplayCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function BlockDisplayCard() {
if (blockKey === "gallery") {
return (
<GalleryUploader
key={blockKey}
files={block.files}
blockType={blockKey as BlockType}
/>
Expand Down
7 changes: 2 additions & 5 deletions components/Profile/Blocks/VideoBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client";
import Image from "next/image";
import { useBlock } from "@/hooks/toggle";
import AltText from "../../Reusable/AltText";
import MediaUpload from "../../Reusable/MediaUpload";
Expand Down Expand Up @@ -38,11 +39,7 @@ export const VideoBlock = () => {
<span className="mx-2.5 font-normal">Video</span>
</div>
<div>
{false ? (
<img src={"URL.createObjectURL()"} />
) : (
<MediaUpload mediaType="video" mediaSrcUrl={mediaSrcUrl} />
)}
<MediaUpload mediaType="video" mediaSrcUrl={mediaSrcUrl} />
<AltText
label="Alt Text"
placeholder="Enter Text..."
Expand Down
2 changes: 1 addition & 1 deletion components/Profile/SideDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function SideDrawer() {
onOpenBlock("index");
break;
}
}, [blockType]);
}, [onOpenBlock, blockType]);
return (
<div
className={`w-full h-screen transition-all duration-300 ease-in-out transform ${
Expand Down

0 comments on commit fa8d883

Please sign in to comment.