Chore: reusable portalFactory
for App + PD
#2511
Labels
app
Affects the `app` project
chore
components
Affects the `components` project
protocol designer
Affects the `protocol-designer` project
3 strikes you're out, duplicate copy & pasted code ⚾ 🦇 . We have 3 Portal .js files that are almost the same, and should consolidate each of those files into 1-liners:
export default portalFactory('portal-root-here')
portalFactory(PORTAL_ROOT_ID: string) => {getPortalRoot, Portal, PortalRoot}
in components libraryMainPageModalPortal
andTooltipPortal
, and App's portal ('__otAppModalPortalRoot'
)The text was updated successfully, but these errors were encountered: