Fakultas Ilmu Komputer UI

Commit 59437c5a authored by Inigo Ramli's avatar Inigo Ramli
Browse files

[GREEN] Remove comments

parent 645d4249
Pipeline #73170 passed with stages
in 9 minutes and 56 seconds
......@@ -139,7 +139,6 @@ export default function Table({
useEffect(() => {
const initializeData = async () => {
console.log("Initialize data");
setIsLoading(true);
const data = await onChange(searchValue, pageNumber);
if (data) {
......
......@@ -51,14 +51,14 @@ export default function AccountManagementPage() {
return [];
};
const addAccount = async (newAccount: Account) => {
const refreshTable = async () => {
const newAccountState = await fetchAccounts(1, '');
setCleanedData(newAccountState);
};
return (
<Box width="100%" axis={Box.Axis.Vertical}>
<AddAccountForm addAccount={addAccount} />
<AddAccountForm addAccount={refreshTable} />
<Gap axis={Gap.Axis.Vertical} gap={20} />
......@@ -110,7 +110,7 @@ export default function AccountManagementPage() {
crossAxis="center"
>
<UserProfile
id={data[8]?.toString()}
id={data[9]?.toString()}
name={data[0]?.toString()}
username={data[1]?.toString()}
email={data[2]?.toString()}
......@@ -121,6 +121,7 @@ export default function AccountManagementPage() {
is_verified={data[10].toString() === 'true'}
is_active={data[11].toString() === 'true'}
numberOfActivities={parseInt(data[6]?.toString(), 10)}
updateTable={refreshTable}
/>
</Cloud>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment