mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Set modules.
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
 | 
			
		||||
import ReactDOM from 'react-dom';
 | 
			
		||||
 | 
			
		||||
export default function Portal({containerId, children}) {
 | 
			
		||||
export function Portal({containerId, children}) {
 | 
			
		||||
    const container = document.getElementById(containerId);
 | 
			
		||||
    if (container)
 | 
			
		||||
        return ReactDOM.createPortal(children, container);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
import Portal from './Portal';
 | 
			
		||||
 | 
			
		||||
export {Portal}
 | 
			
		||||
		Reference in New Issue
	
	Block a user