diff --git a/native/chat/timestamp.react.js b/native/chat/timestamp.react.js index d16d33688..166231527 100644 --- a/native/chat/timestamp.react.js +++ b/native/chat/timestamp.react.js @@ -1,46 +1,42 @@ // @flow import * as React from 'react'; import { longAbsoluteDate } from 'lib/utils/date-utils'; import { SingleLine } from '../components/single-line.react'; import { useStyles } from '../themes/colors'; export type DisplayType = 'lowContrast' | 'modal'; type Props = { +time: number, +display: DisplayType, }; function Timestamp(props: Props): React.Node { const styles = useStyles(unboundStyles); const style = [styles.timestamp]; if (props.display === 'modal') { style.push(styles.modal); } - return ( - - {longAbsoluteDate(props.time).toUpperCase()} - - ); + return {longAbsoluteDate(props.time)}; } const timestampHeight = 26; const unboundStyles = { modal: { // high contrast framed against OverlayNavigator-dimmed background color: 'white', }, timestamp: { alignSelf: 'center', bottom: 0, color: 'listBackgroundTernaryLabel', fontSize: 14, height: timestampHeight, paddingVertical: 3, }, }; export { Timestamp, timestampHeight };