Web: Client: fixed styles in the audit trail and login history

This commit is contained in:
DmitrySychugov 2023-03-21 14:37:27 +05:00
parent ded387bcf1
commit fc2cd3a7d5
5 changed files with 16 additions and 13 deletions

View File

@ -6,10 +6,11 @@ import styled from "styled-components";
import { UnavailableStyles } from "../../../../utils/commonSettingsStyles";
const StyledRowContent = styled(RowContent)`
padding-bottom: 10px;
.row-main-container-wrapper {
display: flex;
justify-content: space-between;
width: 100%;
justify-content: flex-start;
width: min-content;
}
${(props) => props.isSettingNotPaid && UnavailableStyles}
@ -29,12 +30,7 @@ export const AuditContent = ({ sectionWidth, item, isSettingNotPaid }) => {
isSettingNotPaid={isSettingNotPaid}
>
<div className="user-container-wrapper">
<Text
fontWeight={600}
fontSize="14px"
isTextOverflow={true}
className="settings_unavailable"
>
<Text fontWeight={600} fontSize="14px" isTextOverflow={true}>
{item.user}
</Text>
</div>

View File

@ -26,7 +26,9 @@ const AuditTrail = (props) => {
useEffect(() => {
setDocumentTitle(t("AuditTrailNav"));
getAuditTrail();
if (isAuditAvailable) {
getAuditTrail();
}
getLifetimeAuditSettings();
}, []);

View File

@ -7,8 +7,8 @@ import styled from "styled-components";
const StyledRowContent = styled(RowContent)`
.row-main-container-wrapper {
display: flex;
justify-content: space-between;
width: 100%;
justify-content: flex-start;
width: min-content;
}
`;
@ -34,6 +34,7 @@ export const HistoryContent = ({ sectionWidth, item }) => {
fontSize="12px"
fontWeight={600}
truncate={true}
color="#A3A9AE"
>
{dateStr}
</Text>

View File

@ -26,7 +26,10 @@ const LoginHistory = (props) => {
useEffect(() => {
setDocumentTitle(t("LoginHistoryTitle"));
getLoginHistory();
if (isAuditAvailable) {
getLoginHistory();
}
getLifetimeAuditSettings();
}, []);
@ -73,6 +76,7 @@ const LoginHistory = (props) => {
setLifetimeAuditSettings={setLifetimeAuditSettings}
content={getContent()}
downloadReport={t("DownloadReportBtnText")}
downloadReportDescription={t("DownloadReportDescription")}
getReport={getLoginHistoryReport}
isSettingNotPaid={!isAuditAvailable}
/>

View File

@ -89,7 +89,7 @@ const DownLoadWrapper = styled.div`
.download-report_description {
font-style: normal;
font-weight: 600;
font-weight: 400;
font-size: 12px;
line-height: 16px;