import useFetchMock from './../hooks/use-fetch-mock' import { AddEmailInput } from '../../js/features/settings/components/emails/add-email-input' export const EmailInput = args => { useFetchMock(fetchMock => fetchMock.get(/\/institutions\/domains/, [ { hostname: 'autocomplete.edu', id: 123 }, ]) ) return ( <>
Use autocomplete.edu as domain to trigger an autocomplete
) } export default { title: 'Account Settings / Emails and Affiliations', component: AddEmailInput, argTypes: { onChange: { action: 'change' }, }, }