mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-10-31 10:54:33 +01:00 
			
		
		
		
	Add and use clsx (classnames alternative) (#2249)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| import React, { useEffect, useRef } from "react"; | ||||
| import clsx from "clsx"; | ||||
| import { Modal } from "./Modal"; | ||||
| import { Island } from "./Island"; | ||||
| import { t } from "../i18n"; | ||||
| @@ -68,7 +69,7 @@ export const Dialog = (props: { | ||||
|  | ||||
|   return ( | ||||
|     <Modal | ||||
|       className={`${props.className ?? ""} Dialog`} | ||||
|       className={clsx("Dialog", props.className)} | ||||
|       labelledBy="dialog-title" | ||||
|       maxWidth={props.maxWidth} | ||||
|       onCloseRequest={props.onCloseRequest} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Danila
					Danila