Skip to content

Commit

Permalink
1.3 fsm urc develop (#86)
Browse files Browse the repository at this point in the history
* Added URC for citizrn and employee in create flow

* Citizen and employee create issues fixed for URC

* Add new vehicle changes for URC

* changed css version to 1.5.9
  • Loading branch information
rakesh-wt-egov committed Apr 3, 2023
1 parent 5c3c6d1 commit 6fdc76a
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 83 deletions.
2 changes: 1 addition & 1 deletion web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-css",
"version": "1.5.8",
"version": "1.5.9",
"license": "MIT",
"main": "dist/index.css",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const EmployeePayment = ({ stateCode, cityCode, moduleCode }) => {

return (
<React.Fragment>
<p className="breadcrumb" style={{ marginLeft: "15px" }}>
<p className="breadcrumb" style={{ marginLeft: "15px", fontSize: "14px", color: "#505a5f", marginBottom: "10px" }}>
<Link to={`/digit-ui/employee`}>{t("ES_COMMON_HOME")}</Link>
{isFsm ? <Link to={`/digit-ui/employee/fsm/home`}>/ {t("ES_TITLE_FSM")} </Link> : null}
{isFsm ? <Link to={`/digit-ui/employee/fsm/inbox`}>/ {t("ES_TITLE_INBOX")}</Link> : null}/ {link}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const SearchApplication = ({ onSearch, type, onClose, onTabChange, isFstpOperato
</div>
</div>
{showAddMenu && (
<Menu localeKeyPrefix={"ES_FSM_ACTION_CREATE"} options={["VENDOR", "DRIVER", "VEHICLE"]} t={t} onSelect={onActionSelect} />
<Menu localeKeyPrefix={"ES_FSM_ACTION_CREATE"} options={["VENDOR", "VEHICLE", "DRIVER"]} t={t} onSelect={onActionSelect} />
)}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"micro-ui-internals/packages/modules/*"
],
"dependencies": {
"@egovernments/digit-ui-css": "1.5.8",
"@egovernments/digit-ui-css": "1.5.9",
"@egovernments/digit-ui-libraries": "1.6.1",
"@egovernments/digit-ui-module-common": "1.6.1",
"@egovernments/digit-ui-module-core": "1.6.0",
Expand Down
2 changes: 1 addition & 1 deletion web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<link rel="icon" href="./browser-icon.png"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.5.8/dist/index.css"/>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.5.9/dist/index.css"/>
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#00BCD1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const SelectTripData = ({ t, config, onSelect, formData = {}, userType }) => {
},
default: formData?.tripData?.amountPerTrip,
disable:
formData?.address?.propertyLocation.code === "FROM_GRAM_PANCHAYAT"
formData?.address?.propertyLocation?.code === "FROM_GRAM_PANCHAYAT"
? false
: true,
isMandatory: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const BannerPicker = (props) => {
return (
<Banner
message={GetActionMessage()}
applicationNumber={props.data?.fsm[0].applicationNo}
applicationNumber={props?.data?.fsm[0]?.applicationNo}
info={props.t("CS_FILE_DESLUDGING_APPLICATION_NO")}
successful={props.isSuccess}
successful={props?.isSuccess}
/>
);
};
Expand All @@ -48,7 +48,6 @@ const Response = ({ data, onSuccess }) => {
const [paymentPreference, setPaymentPreference] = useState(null);
const [advancePay, setAdvancePay] = useState(null);
const [zeroPay, setZeroPay] = useState(null);

const Data = mutation?.data || successData;
const localityCode = Data?.fsm?.[0].address?.locality?.code;
const slumCode = Data?.fsm?.[0].address?.slumName;
Expand Down Expand Up @@ -129,8 +128,8 @@ const Response = ({ data, onSuccess }) => {
city: city.name,
pincode,
locality: {
code: locality.code,
name: locality.name,
code: locality?.code ? locality.code : gramPanchayat?.code,
name: locality?.name ? locality?.name : gramPanchayat?.name,
},
geoLocation: {
latitude: geoLocation?.latitude,
Expand Down

0 comments on commit 6fdc76a

Please sign in to comment.