Remove the removeScroll attribute in the modal

This commit is contained in:
Arnaud 2024-09-27 19:25:55 +02:00
parent 7044f48daa
commit ecf1fd5f0a
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@codex-storage/marketplace-ui-components", "name": "@codex-storage/marketplace-ui-components",
"version": "0.0.10", "version": "0.0.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@codex-storage/marketplace-ui-components", "name": "@codex-storage/marketplace-ui-components",
"version": "0.0.10", "version": "0.0.11",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lucide-react": "^0.441.0" "lucide-react": "^0.441.0"

View File

@ -5,7 +5,7 @@
"type": "git", "type": "git",
"url": "https://github.com/codex-storage/codex-marketplace-ui-components" "url": "https://github.com/codex-storage/codex-marketplace-ui-components"
}, },
"version": "0.0.10", "version": "0.0.11",
"type": "module", "type": "module",
"scripts": { "scripts": {
"prepack": "npm run build", "prepack": "npm run build",

View File

@ -69,7 +69,7 @@ export function Modal({
}: Props) { }: Props) {
return ( return (
<> <>
<Backdrop open={open} onClose={onClose} removeScroll={true} /> <Backdrop open={open} onClose={onClose} />
<div className={classnames(["modal"], ["modal--open", open])}> <div className={classnames(["modal"], ["modal--open", open])}>
<div className="modal-body">{open && children}</div> <div className="modal-body">{open && children}</div>