prettier / eslint
This commit is contained in:
parent
a4b8ef76a2
commit
38992eed0b
|
@ -31,8 +31,6 @@ import { SEO } from 'web/components/SEO'
|
||||||
import { Linkify } from 'web/components/linkify'
|
import { Linkify } from 'web/components/linkify'
|
||||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||||
import { Tabs } from 'web/components/layout/tabs'
|
import { Tabs } from 'web/components/layout/tabs'
|
||||||
import { LoadingIndicator } from 'web/components/loading-indicator'
|
|
||||||
import { Modal } from 'web/components/layout/modal'
|
|
||||||
import { ChoicesToggleGroup } from 'web/components/choices-toggle-group'
|
import { ChoicesToggleGroup } from 'web/components/choices-toggle-group'
|
||||||
import { ContractSearch } from 'web/components/contract-search'
|
import { ContractSearch } from 'web/components/contract-search'
|
||||||
import { JoinOrLeaveGroupButton } from 'web/components/groups/groups-button'
|
import { JoinOrLeaveGroupButton } from 'web/components/groups/groups-button'
|
||||||
|
@ -406,10 +404,8 @@ function AddContractButton(props: { group: Group; user: User }) {
|
||||||
|
|
||||||
async function onSubmit(contracts: Contract[]) {
|
async function onSubmit(contracts: Contract[]) {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
contracts.map((contract) =>
|
contracts.map((contract) => addContractToGroup(group, contract, user.id))
|
||||||
addContractToGroup(group, contract, user.id)
|
)
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -442,7 +438,9 @@ function AddContractButton(props: { group: Group; user: User }) {
|
||||||
}
|
}
|
||||||
submitLabel={(len) => `Add ${len} question${len !== 1 ? 's' : ''}`}
|
submitLabel={(len) => `Add ${len} question${len !== 1 ? 's' : ''}`}
|
||||||
onSubmit={onSubmit}
|
onSubmit={onSubmit}
|
||||||
contractSearchOptions={{additionalFilter: { excludeContractIds: groupContractIds}}}
|
contractSearchOptions={{
|
||||||
|
additionalFilter: { excludeContractIds: groupContractIds },
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user