From 53791098824b99435ba184983203bfcf9d7d1ebf Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Fri, 17 Sep 2021 16:25:07 -0400 Subject: [PATCH] Rollback interfaces changes --- app/containers/Avatar/interfaces.ts | 10 +++++----- app/containers/markdown/index.tsx | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/containers/Avatar/interfaces.ts b/app/containers/Avatar/interfaces.ts index 2ff48146..692c4d0a 100644 --- a/app/containers/Avatar/interfaces.ts +++ b/app/containers/Avatar/interfaces.ts @@ -1,19 +1,19 @@ export interface IAvatar { - server?: string; + server: string; style: any; text: string; - avatar?: string; + avatar: string; emoji: string; size: number; borderRadius: number; - type?: string; - children?: JSX.Element; + type: string; + children: JSX.Element; user: { id: string; token: string; }; theme: string; - onPress?(): void; + onPress(): void; getCustomEmoji(): any; avatarETag: string; isStatic: boolean; diff --git a/app/containers/markdown/index.tsx b/app/containers/markdown/index.tsx index 2055e3e1..d3ce8453 100644 --- a/app/containers/markdown/index.tsx +++ b/app/containers/markdown/index.tsx @@ -23,24 +23,24 @@ import { isValidURL } from '../../utils/url'; interface IMarkdownProps { msg: string; - getCustomEmoji?: Function; + getCustomEmoji: Function; baseUrl: string; username: string; - tmid?: string; - isEdited?: boolean; + tmid: string; + isEdited: boolean; numberOfLines: number; - customEmojis?: boolean; + customEmojis: boolean; useRealName: boolean; channels: { name: string; _id: number; }[]; - mentions?: object[]; + mentions: object[]; navToRoomInfo: Function; - preview?: boolean; + preview: boolean; theme: string; - testID?: string; - style?: any; + testID: string; + style: any; onLinkPress: Function; }