Skip to content

Commit 79c2c97

Browse files
committed
chore: cleanup
1 parent c2284dd commit 79c2c97

3 files changed

Lines changed: 13 additions & 23 deletions

File tree

examples/nextjs-shadcn/src/app/actions.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export function Actions({
6262
mods={experimentalMods ? actionModsExperimental : actionMods}
6363
onSelect={setCurrentMod}
6464
>
65-
{/* TODO: Find a better way to do this */}
6665
<Button variant="ghost" role="combobox" type="button">
6766
<KebabHorizontalIcon></KebabHorizontalIcon>
6867
</Button>

examples/nextjs-shadcn/src/app/cast.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ export function Cast(props: {
140140
<span>· {publishedAt}</span>
141141
</div>
142142
<div className="ml-auto">
143-
{/* <button className="text-slate-500">
144-
<KebabHorizontalIcon />
145-
</button> */}
146143
<Actions
147144
post={{
148145
id: props.cast.hash,

packages/core/src/renderer.ts

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,17 @@ export type ModElementRef<T> =
158158
};
159159
};
160160

161-
export type BaseContext = {
162-
user?: {
163-
wallet?: {
164-
address?: string;
165-
};
166-
farcaster?: {
167-
fid?: string;
168-
};
161+
export type UserData = {
162+
wallet?: {
163+
address?: string;
169164
};
165+
farcaster?: {
166+
fid?: string;
167+
};
168+
};
169+
170+
export type BaseContext = {
171+
user?: UserData;
170172
/** The url of the api hosting the mod backends. (including /api) **/
171173
api: string;
172174
};
@@ -182,16 +184,8 @@ export type RichEmbedContext = BaseContext & {
182184
};
183185

184186
export type ActionContext = BaseContext & {
185-
user: {
186-
wallet?: {
187-
address?: string;
188-
};
189-
};
190-
author: {
191-
farcaster?: {
192-
fid?: string;
193-
};
194-
};
187+
user: UserData;
188+
author: Omit<UserData, "wallet">;
195189
post: {
196190
text: string;
197191
embeds: Embed[];
@@ -449,7 +443,7 @@ export type RendererOptions = {
449443
onEthPersonalSignAction: EthPersonalSignActionResolver;
450444
onSendEthTransactionAction: SendEthTransactionActionResolver;
451445
onExitAction: ExitActionResolver;
452-
} & (
446+
} & ( // TODO: Variant-specific actions
453447
| {
454448
variant: "creation";
455449
context: CreationContext;

0 commit comments

Comments
 (0)