mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-28 20:00:10 +02:00

* Remove the Bootstrap 5 version utilities * Remove Account settings LESS stylesheet and unused styles * Prefer using the OLFormText wrapper component instead of FormText * Remove the Bootstrap 3 version stories * Replace Font Awesome icons to Material icons * Fix the heading hierarchy * Cleanup unused translation * Restore ellipsis to the text of two loading spinners * Add loading button tests back and add some button loading labels --------- Co-authored-by: Tim Down <158919+timdown@users.noreply.github.com> GitOrigin-RevId: 283a9167c8c78bf0fe5062840ded6917dcd6263b
30 lines
711 B
TypeScript
30 lines
711 B
TypeScript
import useFetchMock from './../hooks/use-fetch-mock'
|
|
import Input from '../../js/features/settings/components/emails/add-email/input'
|
|
|
|
export const EmailInput = (args: any) => {
|
|
useFetchMock(fetchMock =>
|
|
fetchMock.get(/\/institutions\/domains/, [
|
|
{
|
|
hostname: 'autocomplete.edu',
|
|
university: { id: 123, name: 'Auto Complete University' },
|
|
},
|
|
])
|
|
)
|
|
return (
|
|
<>
|
|
<Input {...args} />
|
|
<br />
|
|
<div>
|
|
Use <code>autocomplete.edu</code> as domain to trigger an autocomplete
|
|
</div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default {
|
|
title: 'Account Settings / Emails and Affiliations',
|
|
component: Input,
|
|
argTypes: {
|
|
onChange: { action: 'change' },
|
|
},
|
|
}
|