Skip to content

Commit

Permalink
cleaned pgr code
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunarora-eGov committed May 30, 2024
1 parent c6a330e commit 38daa0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions micro-ui/web/packages/pgr/src/pages/citizen/Create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const CreateComplaint = () => {
const history = useHistory();
const registry = useContext(ComponentProvider);
const dispatch = useDispatch();
const { data: storeData, isLoading } = Digit.Hooks.useStore.getInitData();
const { stateInfo } = storeData || {};
// const { data: storeData, isLoading } = Digit.Hooks.useStore.getInitData();
// const { stateInfo } = storeData || {};
const [params, setParams, clearParams] = Digit.Hooks.useSessionStorage(PGR_CITIZEN_CREATE_COMPLAINT, {});
// const [customConfig, setConfig] = Digit.Hooks.useSessionStorage(PGR_CITIZEN_COMPLAINT_CONFIG, {});
const config = useMemo(() => merge(defaultConfig, Digit.Customizations.PGR.complaintConfig), [Digit.Customizations.PGR.complaintConfig]);
Expand Down Expand Up @@ -86,7 +86,7 @@ export const CreateComplaint = () => {
region: city,
localityCode,
localityName,
state: stateInfo.name,
state: "pg",
uploadedImages: _uploadImages,
};

Expand All @@ -105,7 +105,7 @@ export const CreateComplaint = () => {
goNext();
};

if (isLoading) return null;
// if (isLoading) return null;

return (
<Switch>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useTranslation } from "react-i18next";

const { useState, useEffect } = require("react");
import React,{useState,useEffect} from 'react';

const useServiceDefs = (tenantId, moduleCode) => {
const [localMenu, setLocalMenu] = useState([]);
Expand Down

0 comments on commit 38daa0f

Please sign in to comment.