@ -19,7 +19,7 @@ const Portal: React.FC<IPortal> = ({ children }) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
return ReactDOM.createPortal(children, document.getElementById('plfe') as HTMLDivElement);
|
||||
return ReactDOM.createPortal(children, document.getElementById('app') as HTMLDivElement);
|
||||
};
|
||||
|
||||
export { Portal as default };
|
||||
|
||||
@ -78,7 +78,7 @@ const ScheduleForm: React.FC<IScheduleForm> = ({ composeId }) => {
|
||||
className={clsx({
|
||||
'has-error': !isValidTime(scheduledAt),
|
||||
})}
|
||||
portalId='plfe'
|
||||
portalId='app'
|
||||
/>
|
||||
</Suspense>
|
||||
<IconButton
|
||||
|
||||
@ -162,7 +162,7 @@ const EditAnnouncementModal: React.FC<BaseModalProps & EditAnnouncementModalProp
|
||||
selected={startTime}
|
||||
onChange={onChangeStartTime}
|
||||
isClearable
|
||||
portalId='plfe'
|
||||
portalId='app'
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup
|
||||
|
||||
@ -9,7 +9,7 @@ const fetchAboutPage = async (slug: string, locale?: string) => {
|
||||
|
||||
const { data } = await staticFetch(`/instance/about/${filename}`);
|
||||
|
||||
if (data.includes('<div id="plfe">')) return '';
|
||||
if (data.includes('<div id="app">')) return '';
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user