Co-authored-by: scott@signal.org
Co-authored-by: ken@signal.org
This commit is contained in:
Ken Powers 2019-05-16 15:32:11 -07:00 committed by Scott Nonnenberg
parent 8c8856785b
commit 29de50c12a
100 changed files with 7572 additions and 693 deletions

View file

@ -5,9 +5,10 @@ import { getIncrement, getTimerBucket } from '../../util/timer';
interface Props {
withImageNoCaption: boolean;
withSticker: boolean;
expirationLength: number;
expirationTimestamp: number;
direction: 'incoming' | 'outgoing';
direction?: 'incoming' | 'outgoing';
}
export class ExpireTimer extends React.Component<Props> {
@ -44,6 +45,7 @@ export class ExpireTimer extends React.Component<Props> {
expirationLength,
expirationTimestamp,
withImageNoCaption,
withSticker,
} = this.props;
const bucket = getTimerBucket(expirationTimestamp, expirationLength);
@ -56,7 +58,8 @@ export class ExpireTimer extends React.Component<Props> {
`module-expire-timer--${direction}`,
withImageNoCaption
? 'module-expire-timer--with-image-no-caption'
: null
: null,
withSticker ? 'module-expire-timer--with-sticker' : null
)}
/>
);