session-desktop/ts/types/Util.ts
Audric Ackermann 651b1c4376
Fetch translations (#2056)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety

* add type for i18n to run update after crowdin  fetch with tools/updateI18nKeysType.py

* update to latest translations
2021-11-30 14:46:06 +11:00

28 lines
529 B
TypeScript

import { LocalizerKeys } from './LocalizerKeys';
export type RenderTextCallbackType = (options: {
text: string;
key: number;
isGroup?: boolean;
convoId?: string;
}) => JSX.Element | string;
export type LocalizerType = (key: LocalizerKeys, values?: Array<string>) => string;
export type ColorType =
| 'gray'
| 'blue'
| 'cyan'
| 'deep_orange'
| 'green'
| 'indigo'
| 'pink'
| 'purple'
| 'red'
| 'teal';
export enum Colors {
OFFLINE = '#3d3e44',
OFFLINE_LIGHT = '#cccece',
ONLINE = '#00f782',
}