Make timeagoFormatter optional

This commit is contained in:
Chi Vinh Le
2018-07-13 19:58:58 -03:00
parent f693820244
commit 0aa556d288
6 changed files with 7 additions and 21 deletions
@@ -13,7 +13,7 @@ export interface TalkContext {
localeMessages: MessageContext[];
// formatter for timeago.
timeagoFormatter: Formatter | null;
timeagoFormatter?: Formatter;
}
const { Provider, Consumer } = React.createContext<TalkContext>({} as any);