-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formate some code as per eslint cofiguration
- Loading branch information
1 parent
9bdd13b
commit a857664
Showing
83 changed files
with
1,379 additions
and
1,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ module.exports = { | |
], | ||
parserOptions: { | ||
sourceType: 'script' | ||
}, | ||
rules: { | ||
'error': 0, | ||
} | ||
} | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
}, | ||
"devDependencies": { | ||
"jest": "^29.7.0", | ||
"nodemon": "^3.0.1", | ||
"prettier": "^3.1.0" | ||
"nodemon": "^3.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
autoprefixer: {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
import IconBtn from "./IconBtn"; | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import IconBtn from './IconBtn' | ||
|
||
export default function ConfirmationModal({ modalData }) { | ||
return ( | ||
<div className="fixed inset-0 z-[1000] !mt-0 grid place-items-center overflow-auto bg-white bg-opacity-10 backdrop-blur-sm"> | ||
<div className="w-11/12 max-w-[350px] rounded-lg border border-richblack-400 bg-richblack-800 p-6"> | ||
<p className="text-2xl font-semibold text-richblack-5"> | ||
{" "} | ||
{modalData?.text1}{" "} | ||
</p> | ||
<p className="mt-3 mb-5 leading-6 text-richblack-200"> | ||
{" "} | ||
{modalData?.text2}{" "} | ||
</p> | ||
const ConfirmationModal = ({ modalData }) => ( | ||
<div className="fixed inset-0 z-[1000] !mt-0 grid place-items-center overflow-auto bg-white bg-opacity-10 backdrop-blur-sm"> | ||
<div className="w-11/12 max-w-[350px] rounded-lg border border-richblack-400 bg-richblack-800 p-6"> | ||
<p className="text-2xl font-semibold text-richblack-5"> | ||
{modalData?.text1} | ||
</p> | ||
<p className="mt-3 mb-5 leading-6 text-richblack-200"> | ||
{modalData?.text2} | ||
</p> | ||
|
||
<div className="flex items-center gap-x-4"> | ||
<IconBtn | ||
onclick={modalData?.btn1Handler} | ||
text={modalData?.btn1Text} | ||
/> | ||
<button | ||
className="cursor-pointer rounded-md bg-richblack-200 py-[8px] px-[20px] font-semibold text-richblack-900" | ||
onClick={modalData?.btn2Handler} | ||
> | ||
{modalData?.btn2Text} | ||
</button> | ||
</div> | ||
<div className="flex items-center gap-x-4"> | ||
<IconBtn | ||
onclick={modalData?.btn1Handler} | ||
text={modalData?.btn1Text} | ||
/> | ||
<button | ||
type="button" | ||
className="cursor-pointer rounded-md bg-richblack-200 py-[8px] px-[20px] font-semibold text-richblack-900" | ||
onClick={modalData?.btn2Handler} | ||
> | ||
{modalData?.btn2Text} | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} | ||
</div> | ||
) | ||
|
||
ConfirmationModal.propTypes = { | ||
modalData: PropTypes.shape({ | ||
text1: PropTypes.string, | ||
text2: PropTypes.string, | ||
btn1Handler: PropTypes.func, | ||
btn1Text: PropTypes.string, | ||
btn2Handler: PropTypes.func, | ||
btn2Text: PropTypes.string | ||
}).isRequired | ||
} | ||
|
||
export default ConfirmationModal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
frontend/src/components/core/Dashboard/AddCourse/CourseBuilder/CourseBuilderForm.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
frontend/src/components/core/Dashboard/AddCourse/CourseBuilder/NestedView.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.