Next.js Discord

Discord Forum

Creating a hook/component

I'm trying to create a new component for next.js/react app, and i'm facing some issues...

Code: https://pastebin.com/edit/ZiTBpUhg

Error:
Answered by averydelusionalperson
@πšπš’πš–πšžπš£πš”πšŠπšœ hello, can you share the component file?
View full answer

68 Replies

sorry lmao, going for namaz
see you after 15 mins
@πšπš’πš–πšžπš£πš”πšŠπšœ hello, can you share the component file?
Answer
Action?
can you share it here? the site is kinda banned in our company
btw it is my selfhosted thing, and i'm too lazy to enable the https
yeah
export default ActionAllPackages();

you should not use brackets while exporting
just
export default ActionAllPackages;
??
yeah
noice
can you mark the message as solution?
can you show your project files?
Giant panda
can you please remove that site
Original message was deleted
Giant panda
yes
Giant panda
unsafe link
the same thing
Giant panda
@Giant panda https://pastebin.com/ZiTBpUhg where is your hook
there is no hook, he just kept it at that path
it just worked, and then i'm added the another option for context menu, and it is not working now(
Giant panda
that path is confusing
i copy pasted this section from old columns.tsx, before moving it to actions
I don't see anything new, it's same as you shared in the pastebin
?
yeah, because i chaned it in pastebin
click diff
uhm
there is no diff
strange
how?
just undo, and then modified only that section instead of all require
lol
now
paket is undefined
ugh sed
you're passing paket in the columns.tsx right?
yeaaa??
sorry man, gotta go home, bye, hope you fix this
sya man, thx for all
🫑
nah
ok i fixed it, thxxx
🫑