Moving on...
This commit is contained in:
1 parent
3d7faf9723
commit
c30da44783
6 files changed
+101
-4
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { createForm } from "@felte/solid";
|
||||
import { Component } from "solid-js";
|
||||
|
||||
interface Props {}
|
||||
|
||||
const Invitation: Component<Props> = (props) => {
|
||||
const submitHandler = (values: any, context: any) => {
|
||||
console.log({
|
||||
caller: "Invitation / submitHandler",
|
||||
props,
|
||||
values,
|
||||
context,
|
||||
});
|
||||
};
|
||||
|
||||
const { form } = createForm({ onSubmit: submitHandler });
|
||||
|
||||
return (
|
||||
<form use:form>
|
||||
<label for="database">Database</label>
|
||||
<input type="url" name="database" required={true} />
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
||||
export default Invitation;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from "./Invitation";
|
||||
@@ -0,0 +1,7 @@
|
||||
export default () => {
|
||||
return (
|
||||
<main>
|
||||
<h1>Invitations</h1>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
import Invitation from "~/components/invitation";
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<main>
|
||||
<h1>New invitation</h1>
|
||||
<Invitation />
|
||||
</main>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user