Skip to content

Commit 8e4a16e

Browse files
committed
commited suggestions
1 parent f92c654 commit 8e4a16e

File tree

4 files changed

+11
-20
lines changed

4 files changed

+11
-20
lines changed

src/entities/list/components/ListAccounts.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const ListAccounts = ({
2929
const [accountsWithAccess, setAccountsWithAccess] = useState<string[]>([]);
3030
const [statusFilter, setsStatusFilter] = useState<string>("all");
3131

32-
console.log(listRegistrations)
3332

3433
const SORT_LIST_PROJECTS = [
3534
{ label: "Most recent", value: "recent" },

src/entities/list/components/ListConfirmationModals.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const SuccessModalCreateList: React.FC<SuccessModalProps> = ({
4747
</h2>
4848
<p className="mb-6 text-center text-gray-700">
4949
You’ve successfully {isUpdate ? "Updated" : "Deployed"} {listName}, you can always make
50-
adjustments in the pot settings page.
50+
adjustments in the list settings page.
5151
</p>
5252
<Button asChild>
5353
<Link href={href} onClick={onClose}>

src/entities/list/components/ListFormDetails.tsx

+5-9
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,11 @@ export const ListFormDetails: React.FC<ListFormProps> = ({ listId, isDuplicate =
274274
[admins],
275275
);
276276

277-
if (isListLoading || isRegistrationListLoading) {
278-
return (
279-
<div className="flex h-[80vh] items-center justify-center">
280-
<Spinner className="h-20 w-20" />
281-
</div>
282-
);
283-
}
284-
285-
return (
277+
return isListLoading || isRegistrationListLoading ? (
278+
<div className="flex h-[80vh] items-center justify-center">
279+
<Spinner className="h-20 w-20" />
280+
</div>
281+
) : (
286282
<>
287283
<div className=" mx-auto my-8 max-w-[896px] p-6 font-sans md:w-[720px] md:rounded-[16px] md:border md:border-[#DBDBDB] md:p-10">
288284
<h2 className="mb-6 text-[18px] font-semibold">List Details</h2>

src/pages/list/[id]/index.tsx

+5-9
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,11 @@ export default function SingleList() {
6363
});
6464
}, [loadingListData, isLoading, setAdmins, listData, data]);
6565

66-
if (loadingListData) {
67-
return (
68-
<div className="flex h-[80vh] items-center justify-center">
69-
<Spinner className="w-25 h-25" />
70-
</div>
71-
);
72-
}
73-
74-
return (
66+
return loadingListData ? (
67+
<div className="flex h-[80vh] items-center justify-center">
68+
<Spinner className="w-25 h-25" />
69+
</div>
70+
) : (
7571
<RootLayout
7672
title={listDetails?.name ?? ""}
7773
description={listDetails?.description ?? ""}

0 commit comments

Comments
 (0)