Skip to content

Commit 36f51d7

Browse files
committed
comment resolved: contstant made for audit filter modal header
1 parent 8364864 commit 36f51d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui/src/components/AuditFilterModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const AuditFilterModal = ({
7171
<div className="tableFilterModalStories" ref={modalRef}>
7272
<div className="tableFilterModalStories__header">
7373
<span className="text-size">
74-
{selectedFileType?.includes?.('Entries') ? 'Display Type' : 'Select Field Data Type'}
74+
{selectedFileType?.includes?.(auditLogsConstants.filterModal.entries) ? auditLogsConstants.filterModal.displayType : auditLogsConstants.filterModal.selectFieldType}
7575
</span>
7676
<div className="close-btn">
7777
<Icon version="v2" icon="CloseNoborder" size="medium" onClick={closeModal} />

ui/src/utilities/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ export const auditLogsConstants = {
144144
filterModal: {
145145
noFilterAvailable: 'No Filters Available',
146146
clearAll: 'Clear All',
147-
apply: 'Apply'
147+
apply: 'Apply',
148+
displayType: 'Display Type',
149+
selectFieldType: 'Select Field Data Type',
150+
entries: 'Entries',
148151
}
149152
};
150153

0 commit comments

Comments
 (0)