File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ const DEFAULT_MODE = 'elevated';
173
173
* `Modal` contents within a `PaperProvider` in order for the menu to show. This
174
174
* wrapping is not necessary if you use Paper's `Modal` instead.
175
175
*/
176
- class MenuComponent extends React . Component < Props , State > {
176
+ class Menu extends React . Component < Props , State > {
177
177
// @component ./MenuItem.tsx
178
178
static Item = MenuItem ;
179
179
@@ -709,13 +709,13 @@ const styles = StyleSheet.create({
709
709
} ,
710
710
} ) ;
711
711
712
- const MenuWithHOC = withInternalTheme ( withSafeAreaInsets ( MenuComponent ) ) ;
712
+ const MenuWithHOC = withInternalTheme ( withSafeAreaInsets ( Menu ) ) ;
713
713
714
- const Menu = MenuWithHOC as typeof MenuWithHOC & {
714
+ const MenuWithItem = MenuWithHOC as typeof MenuWithHOC & {
715
715
Item : typeof MenuItem ;
716
716
} ;
717
717
718
718
// we need to attach again MenuItem as it is lost after using withSafeAreaInsets
719
- Menu . Item = MenuItem ;
719
+ MenuWithItem . Item = MenuItem ;
720
720
721
- export default Menu ;
721
+ export default MenuWithItem ;
You can’t perform that action at this time.
0 commit comments