Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stephancill committed Jan 24, 2024
1 parent c2284dd commit 79c2c97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
1 change: 0 additions & 1 deletion examples/nextjs-shadcn/src/app/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export function Actions({
mods={experimentalMods ? actionModsExperimental : actionMods}
onSelect={setCurrentMod}
>
{/* TODO: Find a better way to do this */}
<Button variant="ghost" role="combobox" type="button">
<KebabHorizontalIcon></KebabHorizontalIcon>
</Button>
Expand Down
3 changes: 0 additions & 3 deletions examples/nextjs-shadcn/src/app/cast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export function Cast(props: {
<span>· {publishedAt}</span>
</div>
<div className="ml-auto">
{/* <button className="text-slate-500">
<KebabHorizontalIcon />
</button> */}
<Actions
post={{
id: props.cast.hash,
Expand Down
32 changes: 13 additions & 19 deletions packages/core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,17 @@ export type ModElementRef<T> =
};
};

export type BaseContext = {
user?: {
wallet?: {
address?: string;
};
farcaster?: {
fid?: string;
};
export type UserData = {
wallet?: {
address?: string;
};
farcaster?: {
fid?: string;
};
};

export type BaseContext = {
user?: UserData;
/** The url of the api hosting the mod backends. (including /api) **/
api: string;
};
Expand All @@ -182,16 +184,8 @@ export type RichEmbedContext = BaseContext & {
};

export type ActionContext = BaseContext & {
user: {
wallet?: {
address?: string;
};
};
author: {
farcaster?: {
fid?: string;
};
};
user: UserData;
author: Omit<UserData, "wallet">;
post: {
text: string;
embeds: Embed[];
Expand Down Expand Up @@ -449,7 +443,7 @@ export type RendererOptions = {
onEthPersonalSignAction: EthPersonalSignActionResolver;
onSendEthTransactionAction: SendEthTransactionActionResolver;
onExitAction: ExitActionResolver;
} & (
} & ( // TODO: Variant-specific actions
| {
variant: "creation";
context: CreationContext;
Expand Down

0 comments on commit 79c2c97

Please sign in to comment.