Skip to content

Commit

Permalink
1868: add test for missing columns for each project
Browse files Browse the repository at this point in the history
  • Loading branch information
f1sh1918 committed Feb 5, 2025
1 parent 2584643 commit 12bad63
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions administration/src/bp-modules/user-settings/ActivityLogTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ const StickyTableHeader = styled.thead`
z-index: 2;
`

const EmptyLog = styled.tr`
margin: 12px;


const EmptyLogColumn = styled.td`
padding: 12px;
`

const EmptyLogRow = styled.tr`
&:hover{
background-color: transparent!important;
}
`

const StyledTable = styled.table`
Expand Down Expand Up @@ -61,9 +69,11 @@ const ActivityLogTable = ({ activityLog, activityLogConfig }: ActivityLogTablePr
{activityLog.length > 0 ? (
activityLog.map(activityLogConfig.renderLogEntry)
) : (
<EmptyLog>
<td>{t('noEntries')}</td>
</EmptyLog>
<EmptyLogRow>
<EmptyLogColumn colSpan={999}>
{t('noEntries')}
</EmptyLogColumn>
</EmptyLogRow>
)}
</tbody>
</StyledTable>
Expand Down

0 comments on commit 12bad63

Please sign in to comment.