File tree Expand file tree Collapse file tree
examples/nextjs-shadcn/src/app Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
184186export 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 ;
You can’t perform that action at this time.
0 commit comments