temporary server action for group and inside
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
"use client";
|
||||
import { useState } from "react";
|
||||
import { saveUser } from "./action";
|
||||
import IdComponent from "./IdComponent";
|
||||
|
||||
export default function Page() {
|
||||
const [idList, setIdList] = useState<string[]>([]);
|
||||
function submit() {} //TODO! submit inside user
|
||||
async function submit() {
|
||||
await saveUser(idList);
|
||||
alert("อัพเดทสำเร็จ");
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
<IdComponent updateIdList={(cids) => setIdList(cids)} />
|
||||
|
||||
Reference in New Issue
Block a user