mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Fix lint.
This commit is contained in:
		@@ -5,11 +5,10 @@
 | 
			
		||||
 * See /LICENSE for more information.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import ReactDOM from 'react-dom';
 | 
			
		||||
import ReactDOM from "react-dom";
 | 
			
		||||
 | 
			
		||||
export function Portal({containerId, children}) {
 | 
			
		||||
export default function Portal({ containerId, children }) {
 | 
			
		||||
    const container = document.getElementById(containerId);
 | 
			
		||||
    if (container)
 | 
			
		||||
        return ReactDOM.createPortal(children, container);
 | 
			
		||||
    if (container) return ReactDOM.createPortal(children, container);
 | 
			
		||||
    return null;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user