mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Make timeagoFormatter optional
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -72,7 +72,6 @@ const environment = createEnvironment({
|
||||
|
||||
const context: TalkContext = {
|
||||
relayEnvironment: environment,
|
||||
timeagoFormatter: null,
|
||||
localeMessages: [],
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ const environment = createEnvironment({
|
||||
|
||||
const context: TalkContext = {
|
||||
relayEnvironment: environment,
|
||||
timeagoFormatter: null,
|
||||
localeMessages: [],
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ const environment = createEnvironment({
|
||||
|
||||
const context: TalkContext = {
|
||||
relayEnvironment: environment,
|
||||
timeagoFormatter: null,
|
||||
localeMessages: [],
|
||||
};
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ const environment = createEnvironment({
|
||||
|
||||
const context: TalkContext = {
|
||||
relayEnvironment: environment,
|
||||
timeagoFormatter: null,
|
||||
localeMessages: [],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user