mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
651b1c4376
* 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
28 lines
529 B
TypeScript
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',
|
|
}
|