Skip to content

Commit 152565c

Browse files
authored
Merge pull request #2429 from oasisprotocol/kaja/rofl-card-last-activity
Homepage: ROFL-Powered Apps: Standardize “Last Activity” column header
2 parents 17a989d + 92a1375 commit 152565c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.changelog/2429.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Homepage: ROFL-Powered Apps: Standardize “Last Activity” column header

src/app/components/TableHeaderAge/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next'
33
import { TableAgeType } from '../../../types/table-age-type'
44
import { exhaustedTypeWarning } from '../../../types/errors'
55
import { useLocalSettings } from '../../hooks/useLocalSettings'
6-
import { getTimeZone } from '../../hooks/useFormattedTimestamp'
76
import { TableHeaderToggle } from '../TableHeaderToggle'
87

98
type TableHeaderAgeProps = {
@@ -19,11 +18,9 @@ export const TableHeaderAge: FC<TableHeaderAgeProps> = ({ label }) => {
1918

2019
switch (ageHeaderType) {
2120
case TableAgeType.DateTime: {
22-
const timeZone = getTimeZone()
23-
2421
return (
2522
<TableHeaderToggle
26-
label={`${t('table.headers.dateTime.title')} ${timeZone ? `(${timeZone})` : ''}`}
23+
label={label || t('common.age')}
2724
onClick={() => changeSetting('ageHeaderType', TableAgeType.Distance)}
2825
tooltipTitle={t('table.headers.dateTime.tooltipTitle')}
2926
/>

0 commit comments

Comments
 (0)