Commit e9fde374 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Make ProfileModal have a default export

parent f0439a1b
......@@ -11,7 +11,7 @@ type ProfileModalProps = {
config: ProfileConfig;
};
export function ProfileModal({ eventBus, config }: ProfileModalProps) {
export default function ProfileModal({ eventBus, config }: ProfileModalProps) {
const [isHidden, setIsHidden] = useState(true);
const emitterRef = useRef<Emitter | null>(null);
// Used only to track when was this modal first open, delaying the iframe to
......
......@@ -2,7 +2,7 @@ import { mount } from 'enzyme';
import { act } from 'preact/test-utils';
import { EventBus } from '../../util/emitter';
import { ProfileModal } from '../ProfileModal';
import ProfileModal from '../ProfileModal';
describe('ProfileModal', () => {
const profileURL = 'https://test.hypothes.is/user-profile';
......
......@@ -2,7 +2,7 @@ import { render } from 'preact';
import type { Destroyable } from '../types/annotator';
import type { ProfileConfig } from './components/ProfileModal';
import { ProfileModal } from './components/ProfileModal';
import ProfileModal from './components/ProfileModal';
import type { EventBus } from './util/emitter';
import { createShadowRoot } from './util/shadow-root';
......
......@@ -34,7 +34,7 @@ describe('Profile', () => {
};
$imports.$mock({
'./components/ProfileModal': { ProfileModal: FakeProfileModal },
'./components/ProfileModal': FakeProfileModal,
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment