Run prettier and lint

This commit is contained in:
adilallo
2026-04-04 11:04:37 -06:00
parent 427dc44476
commit 1f6d38f71d
6 changed files with 49 additions and 41 deletions
+5 -6
View File
@@ -13,8 +13,7 @@ const TITLE =
const DESCRIPTION =
"Adding people at this step will invite them to see your proposed CommunityRule and make their own proposals.";
const DRAFT_TOAST_TITLE =
"Congratulations! You've drafted your CommunityRule!";
const DRAFT_TOAST_TITLE = "Congratulations! You've drafted your CommunityRule!";
/**
* Confirm stakeholders step — stacked lockup + MultiSelect (not split columns).
@@ -23,7 +22,9 @@ const DRAFT_TOAST_TITLE =
export default function ConfirmStakeholdersPage() {
const [isMounted, setIsMounted] = useState(false);
const [toastDismissed, setToastDismissed] = useState(false);
const [stakeholderOptions, setStakeholderOptions] = useState<ChipOption[]>([]);
const [stakeholderOptions, setStakeholderOptions] = useState<ChipOption[]>(
[],
);
const isMdOrLarger = useMediaQuery("(min-width: 640px)");
useEffect(() => {
@@ -43,9 +44,7 @@ export default function ConfirmStakeholdersPage() {
const handleCustomChipConfirm = (chipId: string, value: string) => {
setStakeholderOptions((prev) =>
prev.map((opt) =>
opt.id === chipId
? { ...opt, label: value, state: "Selected" }
: opt,
opt.id === chipId ? { ...opt, label: value, state: "Selected" } : opt,
),
);
};
+18 -12
View File
@@ -1,6 +1,12 @@
"use client";
import { useState, useEffect, useMemo, type Dispatch, type SetStateAction } from "react";
import {
useState,
useEffect,
useMemo,
type Dispatch,
type SetStateAction,
} from "react";
import { useMediaQuery } from "../../hooks/useMediaQuery";
import HeaderLockup from "../../components/type/HeaderLockup";
import MultiSelect from "../../components/controls/MultiSelect";
@@ -48,17 +54,17 @@ export default function SelectPage() {
const effectiveMdOrLarger = !isMounted || isMdOrLarger;
const [communitySizeOptions, setCommunitySizeOptions] = useState<ChipOption[]>(
[
{ id: "1", label: "1 member", state: "Unselected" },
{ id: "2", label: "2-10 members", state: "Unselected" },
{ id: "3", label: "10-24 members", state: "Unselected" },
{ id: "4", label: "24-64 members", state: "Unselected" },
{ id: "5", label: "64-128 members", state: "Unselected" },
{ id: "6", label: "125-1000 members", state: "Unselected" },
{ id: "7", label: "1000+ members", state: "Unselected" },
],
);
const [communitySizeOptions, setCommunitySizeOptions] = useState<
ChipOption[]
>([
{ id: "1", label: "1 member", state: "Unselected" },
{ id: "2", label: "2-10 members", state: "Unselected" },
{ id: "3", label: "10-24 members", state: "Unselected" },
{ id: "4", label: "24-64 members", state: "Unselected" },
{ id: "5", label: "64-128 members", state: "Unselected" },
{ id: "6", label: "125-1000 members", state: "Unselected" },
{ id: "7", label: "1000+ members", state: "Unselected" },
]);
const [organizationTypeOptions, setOrganizationTypeOptions] = useState<
ChipOption[]