Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Develop Code sync up #788

Merged
merged 73 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b8813f0
PFM-5822: forgot password fixes WIP
anilsingha-eGov Mar 11, 2024
7567198
PFM-5822:Fixed forgot password not redirecting,added validation for p…
anilsingha-eGov Mar 12, 2024
b8988fa
PFM-5882: Updatd mobile
anilsingha-eGov Mar 13, 2024
ded45aa
PFM-5822: Updated css
anilsingha-eGov Mar 13, 2024
1dfbb70
PFM-5822:Updated max and min length to 15 for change password
anilsingha-eGov Mar 13, 2024
70cd6fc
PFM-5822: Updated css in index.html
anilsingha-eGov Mar 14, 2024
8d12ad4
Merge pull request #751 from egovernments/PFM-5822
anilsingha-eGov Mar 18, 2024
022b3d2
PFM-5842: Fixed category & subcategory value showing null
anilsingha-eGov Apr 1, 2024
50cba4d
Revert "PFM-5842: Fixed category & subcategory value showing null"
anilsingha-eGov Apr 1, 2024
2cf7ca6
PFM-5842: Fixed category & subcategory value showing null
anilsingha-eGov Apr 1, 2024
cde3e5d
Merge pull request #757 from egovernments/PFM-5842
pradeepkumarcm-egov Apr 1, 2024
043553e
PFM-5968:Updated password to max 10
anilsingha-eGov Apr 2, 2024
47b6d3c
Merge pull request #758 from egovernments/develop-digit-ui
pradeepkumarcm-egov Apr 2, 2024
608f00b
PFM-5969: Added select all for roles dropdown
anilsingha-eGov Apr 3, 2024
71e10c9
Merge pull request #759 from egovernments/PFM-5969
pradeepkumarcm-egov Apr 3, 2024
c5611ab
PFM-5983: Password length max set to 10, Fixed uppercase not giving hint
anilsingha-eGov Apr 3, 2024
8623f97
Merge pull request #760 from egovernments/PFM-5983-flutter
pradeepkumarcm-egov Apr 3, 2024
8508a99
PFM-5973 Added condtion to open any dashboard in new tab
chinmoy-eGov Apr 3, 2024
b8c7ae3
PFM-5973 Added condtion to open any dashboard in new tab
chinmoy-eGov Apr 3, 2024
9344f2e
Merge pull request #761 from egovernments/PFM-5973
anilsingha-eGov Apr 3, 2024
3ed308a
PFM-5971 added filter for current tenant
chinmoy-eGov Apr 3, 2024
a7cd53f
Merge pull request #762 from egovernments/PFM-5971
anilsingha-eGov Apr 3, 2024
f612d14
PFM-5984 Added Eye for password visibility
chinmoy-eGov Apr 4, 2024
2044be5
PFM-5984 Addition of password icon
chinmoy-eGov Apr 8, 2024
8b84303
PFM-5984 Addition of password icon
chinmoy-eGov Apr 8, 2024
2936f24
PFM-5996: Fixed employee side bar not working
anilsingha-eGov Apr 8, 2024
e3e14da
PFM-5996: Fixed employee side bar not working ( #765 )
anilsingha-eGov Apr 8, 2024
b50389f
PFM-5971 Added a default function to select a default jurisdiction fo…
chinmoy-eGov Apr 10, 2024
3d43c79
PFM-5971 Added a default function to select a default jurisdiction ( …
anilsingha-eGov Apr 10, 2024
35fda66
PFM-5998: Added Sarpanch, Secretory, Revenue Collector
anilsingha-eGov Apr 10, 2024
9ac3a8c
PFM-5998: Added Sarpanch, Secretory, Revenue Collector ( #768 )
anilsingha-eGov Apr 10, 2024
cf33eb9
Update application.properties
Saloni-eGov Apr 17, 2024
07c3c3d
Merge pull request #769 from egovernments/saloni041-patch-3
pradeepkumarcm-egov Apr 17, 2024
2dc3991
ISTE-17 Password icon change
chinmoy-eGov Apr 18, 2024
6d9d97f
ISTE-19: Updated password for profile
anilsingha-eGov Apr 18, 2024
8eab20e
ISTE-19: Updated password for profile ( #770 )
anilsingha-eGov Apr 18, 2024
cffa35f
PFM-5984 Added Eye for password visibility ( #764 )
anilsingha-eGov Apr 18, 2024
786ac8d
ISTE-7,ISTE-20: Fixed Revenue Collector roles issue
anilsingha-eGov Apr 19, 2024
52d44f4
ISTE-7,ISTE-20: Fixed Revenue Collector roles issue ( #771 )
anilsingha-eGov Apr 19, 2024
f610ab0
ISTE-17 Changes in password component
chinmoy-eGov Apr 19, 2024
b24c6ae
Added password not taking props
anilsingha-eGov Apr 19, 2024
1d2c20a
Merge pull request #772 from egovernments/password-fix
anilsingha-eGov Apr 19, 2024
5a30509
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
chinmoy-eGov Apr 22, 2024
ec5c4f1
ISTE-17 Changes in password component ( #773 )
anilsingha-eGov Apr 22, 2024
c6e0ea2
ISTE-19: Foxed minlentgh issue
anilsingha-eGov Apr 22, 2024
befcab5
ISTE-19: Fixed minlength issue ( #774 )
anilsingha-eGov Apr 22, 2024
cd0613b
ISTE-20: Added sarpanch,revenue collector, secretory & Updated role
anilsingha-eGov Apr 23, 2024
5c48d28
ISTE-20: Added sarpanch,revenue collector, secretory & Updated role (…
anilsingha-eGov Apr 23, 2024
fc40dab
ISTE-19: Fixed forgot password issue
anilsingha-eGov Apr 24, 2024
ac7bad3
ISTE-19: Fixed forgot password issue ( #776 )
anilsingha-eGov Apr 24, 2024
4ce98e5
ISTE-8 Modification for role dropdown
chinmoy-eGov Apr 24, 2024
c027c07
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
chinmoy-eGov Apr 24, 2024
d47c92a
Merge branch 'ISTE-8' of https://github.com/egovernments/punjab-mgram…
chinmoy-eGov Apr 24, 2024
154a215
ISTE-9 Addded Division user and state user type
chinmoy-eGov Apr 24, 2024
75bb0ce
ISTE-9 Addded Division user and state user type
chinmoy-eGov Apr 24, 2024
07540df
Merge pull request #777 from egovernments/ISTE-8
anilsingha-eGov Apr 24, 2024
800fff9
Merge pull request #778 from egovernments/ISTE-9
anilsingha-eGov Apr 24, 2024
7c2778a
ISTE-20: Fixed count not reflecting
anilsingha-eGov Apr 25, 2024
7421dad
ISTE-20: Fixed count not reflecting ( #779 )
anilsingha-eGov Apr 25, 2024
2faae33
ISTE-9 changes in top bar for type of user
chinmoy-eGov Apr 26, 2024
2b9459f
ISTE-9 changes in top bar for type of user ( #780 )
anilsingha-eGov Apr 26, 2024
1929fe4
ISTE-10 Validation added while creating employee
chinmoy-eGov Apr 26, 2024
f2ae513
ISTE-10 Validation added while creating employee ( #781 )
anilsingha-eGov Apr 26, 2024
175514d
ISTE-8 Modification in Multiselect dropdown
chinmoy-eGov Apr 26, 2024
2b54487
ISTE-8 Modification in Multiselect dropdown (#782)
anilsingha-eGov Apr 26, 2024
40b048f
ISTE-8 Modified Tag for Division user
chinmoy-eGov Apr 29, 2024
51f872c
ISTE-8 Modified Tag for Division user ( #783 )
anilsingha-eGov Apr 29, 2024
ce1b545
ISTE-8 Modification in all select for Multiselect
chinmoy-eGov Apr 29, 2024
acca060
ISTE-8 Modification in all select for Multiselect ( #784 )
anilsingha-eGov Apr 29, 2024
76aad43
ISTE-22 Modification in Change city dropdown
chinmoy-eGov Apr 30, 2024
6674f41
ISTE-22 Modification in Change city dropdown ( #785 )
anilsingha-eGov Apr 30, 2024
5147e08
ISTE-11: Added css to hide breadcrum
anilsingha-eGov May 3, 2024
9c606c8
ISTE-11: Added css to hide breadcrum ( #787 )
anilsingha-eGov May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,14 @@ class ConsumerProvider with ChangeNotifier {

void onChangeOfCategory(val) {
waterconnection.additionalDetails ??= addition.AdditionalDetails();
waterconnection.categoryCtrl.text = val;
waterconnection.additionalDetails?.category = val;
notifyListeners();
}

void onChangeOfSubCategory(val) {
waterconnection.additionalDetails ??= addition.AdditionalDetails();
waterconnection.subCategoryCtrl.text = val;
waterconnection.additionalDetails?.subCategory = val;
notifyListeners();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class _ChangePasswordState extends State<ChangePassword> {
passwordDetails.currentpasswordCtrl,
obscureText: true,
isRequired: true,
maxLength: 10,
maxLines: 1,
onChange: (value) => saveInput(value),
key: Keys.changePassword.CURRENT_PASSWORD_KEY,
Expand All @@ -94,6 +95,7 @@ class _ChangePasswordState extends State<ChangePassword> {
passwordDetails.newpasswordCtrl,
obscureText: true,
isRequired: true,
maxLength: 10,
maxLines: 1,
validator: (val) => Validators.passwordComparision(
val, ApplicationLocalizations.of(context).translate(i18.password.NEW_PASSWORD_ENTER)),
Expand All @@ -105,6 +107,7 @@ class _ChangePasswordState extends State<ChangePassword> {
passwordDetails.confirmpasswordCtrl,
obscureText: true,
isRequired: true,
maxLength: 10,
maxLines: 1,
validator: (val) => Validators.passwordComparision(
val,
Expand Down
3 changes: 3 additions & 0 deletions frontend/mgramseva/lib/utils/constants/i18_key_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ class Password {
'CORE_PASS_HINT_ATLEAST_ONE_LETTER';
String get PASS_HINT_ATLEAST_ONE_NUMBER =>
'CORE_PASS_HINT_ATLEAST_ONE_NUMBER';
String get PASS_HINT_ATLEAST_ONE_UPPERCASE =>
'CORE_PASS_HINT_ATLEAST_ONE_UPPERCASE';
String get PASS_HINT_ATLEAST_ONE_SPECIAL_CHARACTER =>
'CORE_PASS_HINT_ATLEAST_ONE_SPECIAL_CHARACTER';
String get ENTER_OTP_SENT_TO => 'ENTER_OTP_SENT_TO';
Expand All @@ -277,6 +279,7 @@ class Password {
String get NEW_PASSWORD_ENTER => 'NEW_PASSWORD_ENTER';
String get CONFIRM_PASSWORD_ENTER => 'CONFIRM_PASSWORD_ENTER';
String get INVITED_TO_SINGLE_GP => 'INVITED_TO_SINGLE_GP';

}

class Expense {
Expand Down
35 changes: 19 additions & 16 deletions frontend/mgramseva/lib/utils/role_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,55 +89,58 @@ class RoleActionsFiltering {
switch (route) {
// GP Admin
case Routes.HOUSEHOLD:
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];

case Routes.CONSUMER_UPDATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];

case Routes.CONSUMER_SEARCH_UPDATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];

case Routes.CONSUMER_CREATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY', 'REVENUE_COLLECTOR'];

case Routes.HOUSEHOLD_DETAILS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];

case Routes.SEARCH_CONSUMER_RESULT:
return [
'GP_ADMIN',
'BULK_DEMAND_PROCESSING',
'COLLECTION_OPERATOR',
'SUPERUSER',
'DIV_ADMIN'
'DIV_ADMIN',
'SARPANCH',
'SECRETARY'
'REVENUE_COLLECTOR'
];

case Routes.HOUSEHOLD_REGISTER:
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];

// Expense Processing
case Routes.EXPENSE_SEARCH:
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.EXPENSES_ADD:
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.EXPENSE_UPDATE:
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.HOUSEHOLDRECEIPTS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];

case Routes.MANUAL_BILL_GENERATE:
return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];

// Collection Operator
case Routes.CONSUMER_SEARCH:
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','REVENUE_COLLECTOR','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.BILL_GENERATE:
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];

case Routes.DASHBOARD:
return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN'];
return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.REPORTS:
return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN'];
return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH''SECRETARY','REVENUE_COLLECTOR'];
default:
return [];
}
Expand Down
17 changes: 17 additions & 0 deletions frontend/mgramseva/lib/widgets/password_hint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,23 @@ class PasswordHint extends StatelessWidget {
color: Colors.green[900],
)
: Text("")
]),
SizedBox(height: 5),
Row(children: [
Text(
ApplicationLocalizations.of(context).translate(i18.password.PASS_HINT_ATLEAST_ONE_UPPERCASE),
style: TextStyle(
fontSize: 16,
color: RegExp(r'^(?=.*[A-Z])').hasMatch(inputPassword)
? Colors.green[900]
: Theme.of(context).hintColor),
),
new RegExp(r'^(?=.*[A-Z])').hasMatch(inputPassword)
? Icon(
Icons.check,
color: Colors.green[900],
)
: Text("")
])
],
)),
Expand Down
21 changes: 16 additions & 5 deletions frontend/micro-ui/web/micro-ui-internals/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,30 @@
<!-- <script src="https://s3.ap-south-1.amazonaws.com/egov-dev-assets/globalConfigs.js"></script> -->
<script src="%REACT_APP_GLOBAL%"></script>
<style type="text/css">
#logo-img-container{
#logo-img-container {
display: none;
}
.selector-button-primary > h2{

.selector-button-primary>h2 {
margin: 0
}
.menu-wrap > div > p {

.menu-wrap>div>p {
margin: 0
}
.selector-button-primary-disabled > h2 {

.selector-button-primary-disabled>h2 {
margin: 0;
}
</style>

.employeeForgotPassword .employee-card-input {
margin-bottom: 24px !important;
border-left: none;
}
.workbench-bredcrumb {
display: none !important;
}
Comment on lines +35 to +41
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review the necessity of !important in CSS.

The use of !important can make CSS maintenance challenging, as it overrides any other styles regardless of specificity. If possible, consider restructuring your CSS to avoid its use, unless absolutely necessary for overriding styles from external libraries.

</style>
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const StoreService = {
.flat()
.reduce((unique, ele) => (unique.find((item) => item.code === ele.code) ? unique : [...unique, ele]), []);
initData.tenants = MdmsRes?.tenant?.tenants
?.filter((x) => x.pgrEnabled)
// ?.filter((x) => x.pgrEnabled)
.map((tenant) => ({
i18nKey: `TENANT_TENANTS_${tenant.code.replace(".", "_").toUpperCase()}`,
...tenant,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const stringReplaceAll = (str = "", searcher = "", replaceWith = "") => {
return str;
};



const ChangeCity = (prop) => {
const [dropDownData, setDropDownData] = useState({
label: `TENANT_TENANTS_${stringReplaceAll(Digit.SessionStorage.get("Employee.tenantId"), ".", "_")?.toUpperCase()}`,
Expand All @@ -21,6 +23,12 @@ const ChangeCity = (prop) => {
const isDropdown = prop.dropdown || false;
let selectedCities = [];

const uuids = [prop.userDetails?.info?.uuid];
const { data: userData, isUserDataLoading } = Digit.Hooks.useUserSearch(Digit.ULBService.getStateId(), { uuid: uuids }, {});
// setSelectedCity(userData?.data?.user[0]?.roles)



const { data: data = {}, isLoading } =
Digit.Hooks.hrms.useHrmsMDMS(Digit.ULBService.getCurrentTenantId(), "egov-hrms", "HRMSRolesandDesignation") || {};

Expand All @@ -43,9 +51,8 @@ const ChangeCity = (prop) => {

useEffect(() => {
const userloggedValues = Digit.SessionStorage.get("citizen.userRequestObject");
let teantsArray = [],
filteredArray = [];
userloggedValues?.info?.roles?.forEach((role) => teantsArray.push(role.tenantId));
let teantsArray = [],filteredArray = [];
userData?.user[0].roles?.forEach((role) => teantsArray.push(role.tenantId));
Comment on lines +54 to +55
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimize the role filtering logic to avoid potential performance issues with large user roles arrays.

- userData?.user[0].roles?.forEach((role) => teantsArray.push(role.tenantId));
+ teantsArray = userData?.user[0]?.roles?.map(role => role.tenantId) || [];

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
let teantsArray = [],filteredArray = [];
userData?.user[0].roles?.forEach((role) => teantsArray.push(role.tenantId));
let teantsArray = [],filteredArray = [];
teantsArray = userData?.user[0]?.roles?.map(role => role.tenantId) || [];

let unique = teantsArray.filter((item, i, ar) => ar.indexOf(item) === i);

unique?.forEach((uniCode) => {
Expand All @@ -69,7 +76,6 @@ const ChangeCity = (prop) => {
setSelectCityData(filteredArray);
}, [dropDownData, data?.MdmsRes]);

// if (isDropdown) {
return (
<div style={prop?.mobileView ? { color: "#767676" } : {}}>
<Dropdown
Expand All @@ -79,35 +85,11 @@ const ChangeCity = (prop) => {
selected={dropDownData}
optionKey={"label"}
select={handleChangeCity}
// freeze={true}
// noBorder={true}
optionCardStyles={{ overflow: "revert", display: "table" }}
// customSelector={
// <label className="cp">
// {prop?.t(`TENANT_TENANTS_${stringReplaceAll(Digit.SessionStorage.get("Employee.tenantId"), ".", "_")?.toUpperCase()}`)}
// </label>
// }
/>
</div>
);
// } else {
// return (
// <React.Fragment>
// <div style={{ marginBottom: "5px" }}>City</div>
// <div className="language-selector" style={{display: "flex", flexWrap: "wrap"}}>
// {selectCityData?.map((city, index) => (
// <div className="language-button-container" key={index}>
// <CustomButton
// selected={city.value === Digit.SessionStorage.get("Employee.tenantId")}
// text={city.label}
// onClick={() => handleChangeCity(city)}
// ></CustomButton>
// </div>
// ))}
// </div>
// </React.Fragment>
// );
// }

};

export default ChangeCity;
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,13 @@ const TopBar = ({
<p className="ulb" style={mobileView ? { fontSize: "14px", display: "inline-block" } : {}}>
{t(cityDetails?.i18nKey).toUpperCase()}{" "}
{t(`ULBGRADE_${cityDetails?.city?.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`).toUpperCase()}
{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?` (${userDetails?.info?.name} | State User)`:` (${userDetails?.info?.name} | Division User)`}`}
</p>
) : (
<img className="state" src={logoUrl} />
<div style={{display:"flex"}}>
<img className="state" src={logoUrl} />
<p style={{margin:"0px 5px", fontWeight: "bold"}}>{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?`(${userDetails?.info?.name} | State User)`:`(${userDetails?.info?.name} | Division User)`}`} </p>
</div>
))}
{!loggedin && (
<p className="ulb" style={mobileView ? { fontSize: "14px", display: "inline-block" } : {}}>
Expand All @@ -120,7 +124,7 @@ const TopBar = ({
<div className={mobileView ? "right" : "flex-right right w-80 column-gap-15"} style={!loggedin ? { width: "80%" } : {}}>
<div className="left">
{!window.location.href.includes("employee/user/login") && !window.location.href.includes("employee/user/language-selection") && (
<ChangeCity dropdown={true} t={t} />
<ChangeCity dropdown={true} t={t} userDetails={userDetails}/>
)}
</div>
<div className="left">{showLanguageChange && <ChangeLanguage dropdown={true} />}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const TopBarSideBar = ({
showLanguageChange={showLanguageChange}
/>
{showDialog && <LogoutDialog onSelect={handleOnSubmit} onCancel={handleOnCancel} onDismiss={handleOnCancel}></LogoutDialog>}
{/* {showSidebar && (
{showSidebar && (
<SideBar
t={t}
CITIZEN={CITIZEN}
Expand All @@ -69,7 +69,7 @@ const TopBarSideBar = ({
linkData={linkData}
islinkDataLoading={islinkDataLoading}
/>
)} */}
)}
</React.Fragment>
);
};
Expand Down
Loading
Loading