Skip to content

Commit

Permalink
MOSIP-38029: UI Development - View of linked devices for a SBI
Browse files Browse the repository at this point in the history
Signed-off-by: Swetha K <[email protected]>
  • Loading branch information
Swetha K committed Jan 6, 2025
1 parent 7e894da commit 7a5051d
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,23 @@ function ViewAdminDeviceDetails() {
setDeviceDetails(selectedDevice);
}, []);

const moveToDevicesList = () => {
const backToDevicesList = () => {
if(deviceDetails.isViewLinkedDevices) {
navigate(`/partnermanagement/admin/device-provider-services/devices-list?sbiId=${deviceDetails.sbiId}&sbiVersion=${deviceDetails.sbiVersion}`);
return `/partnermanagement/admin/device-provider-services/devices-list?sbiId=${deviceDetails.sbiId}&sbiVersion=${deviceDetails.sbiVersion}`;
} else {
navigate('/partnermanagement/admin/device-provider-services/devices-list');
return '/partnermanagement/admin/device-provider-services/devices-list';
}
}

const moveToDevicesList = () => {
navigate(backToDevicesList());
};

return (
<div className={`mt-2 w-[100%] ${isLoginLanguageRTL ? "mr-28 ml-5" : "ml-28 mr-5"} font-inter relative`}>
<div className={`flex-col mt-4 bg-anti-flash-white h-full font-inter break-words max-[450px]:text-sm mb-[2%]`}>
<div className="flex justify-between mb-3">
<Title title={'viewDeviceDetails.viewDeviceDetails'} subTitle='devicesList.listOfDevices' backLink='/partnermanagement/admin/device-provider-services/devices-list'/>
<Title title={'viewDeviceDetails.viewDeviceDetails'} subTitle='devicesList.listOfDevices' backLink={backToDevicesList()}/>
</div>

{unexpectedError && (
Expand Down

0 comments on commit 7a5051d

Please sign in to comment.