Skip to content

Commit

Permalink
MOSIP-36144: UI Development Partner Admin Tabular View of uploaded ce…
Browse files Browse the repository at this point in the history
…rtificates (#1014)
  • Loading branch information
Anil-kumar-Majji authored Dec 11, 2024
1 parent 87dbf2d commit 795df17
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function RootTrustCertificateList() {
const [errorCode, setErrorCode] = useState("");
const [errorMsg, setErrorMsg] = useState("");
const [dataLoaded, setDataLoaded] = useState(true);
const [certificateData, setCertificateData] = useState([]);
const [filteredCertificateData, setFilteredCertificateData] = useState([]);
const [order, setOrder] = useState("ASC");
const [activeSortAsc, setActiveSortAsc] = useState("timeOfUpload");
Expand Down Expand Up @@ -124,8 +123,8 @@ function RootTrustCertificateList() {
<div className="justify-between mb-5 flex-col">
<div className="flex justify-between">
<Title title="rootTrustCertificate.rootOfTrustCertificates" backLink="/partnermanagement" styleSet={style} />
{certificateData.length === 0 ?
<button onClick={showUploadCertificate} id='create_policy_group_btn' type="button" className="h-10 text-sm px-3 font-semibold text-white bg-tory-blue rounded-md max-330:h-fit">
{rootTrustCertificatesList.length === 0 ?
<button onClick={showUploadCertificate} id='upload_root_trust_certificate_btn' type="button" className="h-10 text-sm px-3 font-semibold text-white bg-tory-blue rounded-md max-330:h-fit">
{t('rootTrustCertificate.UploadCertBtn')}
</button>
: null
Expand All @@ -138,7 +137,7 @@ function RootTrustCertificateList() {
activeIntermediateTrustCertificates={false}
intermediateTrustCertificatesPath={''}
/>
{certificateData.length !== 0 ? (
{rootTrustCertificatesList.length !== 0 ? (
<div className="bg-[#FCFCFC] w-full mt-3 rounded-lg shadow-lg items-center">
<EmptyList
tableHeaders={tableHeaders}
Expand All @@ -165,7 +164,7 @@ function RootTrustCertificateList() {
/>
)}
{!tableDataLoaded && <LoadingIcon styleSet={styles} />}
{tableDataLoaded && certificateData.length !== 0 ?
{tableDataLoaded && rootTrustCertificatesList.length !== 0 ?
<EmptyList
tableHeaders={tableHeaders}
/>
Expand Down

0 comments on commit 795df17

Please sign in to comment.