Refactored forms and pages.
This commit is contained in:
16
src/app/(main)/reports/[id]/PopupForm.js
Normal file
16
src/app/(main)/reports/[id]/PopupForm.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import classNames from 'classnames';
|
||||
import styles from './PopupForm.module.css';
|
||||
|
||||
export function PopupForm({ className, style, children }) {
|
||||
return (
|
||||
<div
|
||||
className={classNames(styles.form, className)}
|
||||
style={style}
|
||||
onClick={e => e.stopPropagation()}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default PopupForm;
|
||||
Reference in New Issue
Block a user