MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / onSubmit

Function onSubmit

apps/web/ui/EditChannelModal/index.tsx:82–95  ·  view source on GitHub ↗
(event: React.FormEvent<HTMLFormElement>)

Source from the content-addressed store, hash-verified

80 }
81
82 function onSubmit(event: React.FormEvent<HTMLFormElement>) {
83 event.preventDefault();
84 const form = event.target as typeof event.target & {
85 channelName: { value: string };
86 slackDomain: { value: string };
87 };
88 const channelName = form.channelName.value;
89 updateChannel({
90 accountId: currentCommunity.id,
91 channelId: channel.id,
92 channelName,
93 viewType,
94 });
95 }
96 return (
97 <Modal open={open} close={close}>
98 <form onSubmit={onSubmit}>

Callers

nothing calls this directly

Calls 1

updateChannelFunction · 0.85

Tested by

no test coverage detected