Skip to content

Commit 7e676f3

Browse files
committed
fix(menu): component name to match documentation
1 parent 05dfdf6 commit 7e676f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/Menu/Menu.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const DEFAULT_MODE = 'elevated';
173173
* `Modal` contents within a `PaperProvider` in order for the menu to show. This
174174
* wrapping is not necessary if you use Paper's `Modal` instead.
175175
*/
176-
class MenuComponent extends React.Component<Props, State> {
176+
class Menu extends React.Component<Props, State> {
177177
// @component ./MenuItem.tsx
178178
static Item = MenuItem;
179179

@@ -709,13 +709,13 @@ const styles = StyleSheet.create({
709709
},
710710
});
711711

712-
const MenuWithHOC = withInternalTheme(withSafeAreaInsets(MenuComponent));
712+
const MenuWithHOC = withInternalTheme(withSafeAreaInsets(Menu));
713713

714-
const Menu = MenuWithHOC as typeof MenuWithHOC & {
714+
const MenuWithItem = MenuWithHOC as typeof MenuWithHOC & {
715715
Item: typeof MenuItem;
716716
};
717717

718718
// we need to attach again MenuItem as it is lost after using withSafeAreaInsets
719-
Menu.Item = MenuItem;
719+
MenuWithItem.Item = MenuItem;
720720

721-
export default Menu;
721+
export default MenuWithItem;

0 commit comments

Comments
 (0)