Skip to content

Commit

Permalink
FWF-3542: [Feature] code formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonymol-aot committed Oct 10, 2024
1 parent 72365f7 commit 2b3d407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
27 changes: 1 addition & 26 deletions forms-flow-web/src/components/CustomComponents/settingsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,9 @@ const SettingsModal =
setFormType, newPath, handleFormPathChange }) => {
const { t } = useTranslation();
const dispatch = useDispatch();



const [userRoles, setUserRoles] = useState([]);
const [url, setUrl] = useState('');

// const formName = useSelector((state) => state.form.form.name);
// const formDescription = useSelector((state) => state.process.formProcessList.description);
// const formPath = useSelector((state) => state.form.form.path);
// const processListData = useSelector((state) => state.process?.formProcessList);


const [copied, setCopied] = useState(false);
// const [newPath, setNewPath] = useState(formPath);
// const [newFormName, setNewFormName] = useState(formName);
// const [newFormDescription, setNewFormDescription] = useState(formDescription);



const [copied, setCopied] = useState(false);
const formData = useSelector((state) => state.form?.form.path);
const reducer = (path, { type, value }) => {
const formCopy = _cloneDeep(path);
Expand Down Expand Up @@ -160,10 +144,6 @@ const SettingsModal =
});
};

// const handleFormPathChange = (e) => {
// setNewPath(e.target.value);
// };

const handleClickOutside = (event) => {
if (dropEditRef.current && !dropEditRef.current.contains(event.target)) {
setRolesState((prevState) => ({
Expand Down Expand Up @@ -407,11 +387,6 @@ const SettingsModal =
</InputGroup.Text>
</InputGroup>
</Form.Group>





</div>
)}

Expand Down
7 changes: 2 additions & 5 deletions forms-flow-web/src/components/Form/Item/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ const Edit = React.memo(() => {
const applicationCount = useSelector((state) => state.process?.applicationCount);
const [showSaveModal, setShowSaveModal] = useState(false);
const [hasRendered, setHasRendered] = useState(false);
// const roleIds = useSelector((state) => state.user?.roleIds || {});
// const formName = useSelector((state) => state.form.form.name);

const [isLoadingDiagram, setIsLoadingDiagram] = useState(true);
const formPath = useSelector((state) => state.form.form.path);
const [newPath, setNewPath] = useState(formPath);
Expand Down Expand Up @@ -422,9 +421,7 @@ useEffect(() => {
console.log("discardChanges");
};

// const editorSettings = () => {
// console.log("ecitorActions");
// };

const editorActions = () => {
setNewActionModal(true);
};
Expand Down

0 comments on commit 2b3d407

Please sign in to comment.