@@ -2,15 +2,7 @@ import { useEffect, useMemo, useState } from "react"
22import clsx from "clsx"
33import type { ModalProps } from "react-bootstrap"
44import { useForm } from "react-hook-form"
5- import {
6- Alert ,
7- Button ,
8- Col ,
9- Form ,
10- Modal ,
11- Row ,
12- Stack
13- } from "../bootstrap"
5+ import { Alert , Button , Col , Form , Modal , Row , Stack } from "../bootstrap"
146import { LoadingButton } from "../buttons"
157import Input from "../forms/Input"
168import PasswordInput from "../forms/PasswordInput"
@@ -58,10 +50,7 @@ export default function LegislatorSignUpModal({
5850 const { claimedCodes } = useClaimedMemberCodes ( )
5951
6052 const memberIndex = useMemo ( ( ) => {
61- const all = [
62- ...( index ?. representatives ?? [ ] ) ,
63- ...( index ?. senators ?? [ ] )
64- ]
53+ const all = [ ...( index ?. representatives ?? [ ] ) , ...( index ?. senators ?? [ ] ) ]
6554 if ( ! claimedCodes ) return all
6655 return all . filter ( m => ! claimedCodes . has ( m . MemberCode ) )
6756 } , [ index , claimedCodes ] )
@@ -182,7 +171,9 @@ export default function LegislatorSignUpModal({
182171 t ( "searchLegislators" ) ?? "Search by name or district..."
183172 }
184173 menuPortalTarget = { document . body }
185- styles = { { menuPortal : base => ( { ...base , zIndex : 9999 } ) } }
174+ styles = { {
175+ menuPortal : ( base : any ) => ( { ...base , zIndex : 9999 } )
176+ } }
186177 />
187178 { memberError && (
188179 < Form . Text className = "text-danger" > { memberError } </ Form . Text >
0 commit comments