Skip to content

Commit f641319

Browse files
committed
remove uesless context
1 parent f16b589 commit f641319

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/MentionsContext.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,7 @@ export interface MentionsContextProps {
1010
onFocus: () => void;
1111
}
1212

13-
const MentionsContext: Context<MentionsContextProps> = createReactContext({
14-
notFoundContent: '' as React.ReactNode,
15-
activeIndex: 0,
16-
setActiveIndex: (_: number) => {
17-
/* Do nothing */
18-
},
19-
selectOption: (_: OptionProps) => {
20-
/* Do nothing */
21-
},
22-
onFocus: () => {
23-
/* Do nothing */
24-
},
25-
});
13+
const MentionsContext: Context<MentionsContextProps> = createReactContext(null);
2614

2715
export const MentionsContextProvider = MentionsContext.Provider;
2816
export const MentionsContextConsumer = MentionsContext.Consumer;

0 commit comments

Comments
 (0)