Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/cast/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default async function Home({ params, searchParams, children }: any) {
{/* <FrameImage src={data.publicUrl} /> */}
<FrameImage>
<RootFrame imageSrc={castImage} castInfo={cast} type='start' />
{/* <TestFrame castId={params.id} castImage={castImage} /> */}
{/* <TestFrame castId={params.id} /> */}
{/* <div style={{ display: 'flex' }}>Hello there test. Cast #{params.id}</div> */}
</FrameImage>
<FrameButton>Join</FrameButton>
Expand Down Expand Up @@ -163,7 +163,6 @@ export default async function Home({ params, searchParams, children }: any) {
newCastInfo.prompt_input,
newCastInfo.layer_1_cast_id
);
//@ts
let pastPrompts: string[] = cast.version_history.map(ele => ele.prompt_input as string).filter(ele => !!ele).concat(state.inputText);
handleGenerateImage(cast.name, pastPrompts, createdArtcastId as number, farcaster_name);
state.currentCastId = createdArtcastId as number;
Expand Down
6 changes: 5 additions & 1 deletion lib/components/frames/RootFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ export default function RootFrame({ castInfo, imageSrc, type }: { castInfo: Cast
display: 'flex',
gap: '20px'
}}>
<img src={imageSrc} width="325px" />
{type != 'start' ? <img src={imageSrc} width="325px" />
: <div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', width: '325px', height: '325px', border: '2px solid black' }}>
<span>Click 'Join' to</span>
<span>see the image!</span>
</div>}
<div style={{
display: 'flex',
flexDirection: 'column',
Expand Down
4 changes: 2 additions & 2 deletions lib/components/frames/TestFrame.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Cast } from "@/lib/types/cast.interface";

// @ts-nocheck
export default function TestFrame({ castId, castImage }: { castId: number, castImage: string }) {
export default function TestFrame({ castId }: { castId: number }) {
return (
<div
style={{
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function TestFrame({ castId, castImage }: { castId: number, castI
display: 'flex',
gap: '20px'
}}>
<img src={castImage} width="325px" />
{/* <img src={castImage} width="325px" /> */}
<div style={{
display: 'flex',
flexDirection: 'column',
Expand Down