Skip to content

Commit

Permalink
refactor: added display name for components
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Mar 4, 2021
1 parent 35ffee4 commit 36a76f6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -685,5 +685,6 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
);

const BottomSheet = memo(BottomSheetComponent, isEqual);
BottomSheet.displayName = 'BottomSheet';

export default BottomSheet;
1 change: 1 addition & 0 deletions src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,6 @@ const BottomSheetBackdropComponent = ({
};

const BottomSheetBackdrop = memo(BottomSheetBackdropComponent, isEqual);
BottomSheetBackdrop.displayName = 'BottomSheetBackdrop';

export default BottomSheetBackdrop;
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ const BottomSheetBackdropContainer = memo(
BottomSheetBackdropContainerComponent,
isEqual
);
BottomSheetBackdropContainer.displayName = 'BottomSheetBackdropContainer';

export default BottomSheetBackdropContainer;
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ const BottomSheetBackgroundComponent = ({
);

const BottomSheetBackground = memo(BottomSheetBackgroundComponent, isEqual);
BottomSheetBackground.displayName = 'BottomSheetBackground';

export default BottomSheetBackground;
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ const BottomSheetBackgroundContainer = memo(
BottomSheetBackgroundContainerComponent,
isEqual
);
BottomSheetBackgroundContainer.displayName = 'BottomSheetBackgroundContainer';

export default BottomSheetBackgroundContainer;
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ const BottomSheetContainerComponent = ({
};

const BottomSheetContainer = memo(BottomSheetContainerComponent, isEqual);
BottomSheetContainer.displayName = 'BottomSheetContainer';

export default BottomSheetContainer;
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ const BottomSheetDraggableView = memo(
BottomSheetDraggableViewComponent,
isEqual
);
BottomSheetDraggableView.displayName = 'BottomSheetDraggableView';

export default BottomSheetDraggableView;
1 change: 1 addition & 0 deletions src/components/bottomSheetHandle/BottomSheetHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ const BottomSheetHandleComponent = () => {
};

const BottomSheetHandle = memo(BottomSheetHandleComponent, isEqual);
BottomSheetHandle.displayName = 'BottomSheetHandle';

export default BottomSheetHandle;
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@ const BottomSheetHandleContainer = memo(
BottomSheetHandleContainerComponent,
isEqual
);
BottomSheetHandleContainer.displayName = 'BottomSheetHandleContainer';

export default BottomSheetHandleContainer;
1 change: 1 addition & 0 deletions src/components/bottomSheetModal/BottomSheetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,6 @@ const BottomSheetModalComponent = forwardRef<
});

const BottomSheetModal = memo(BottomSheetModalComponent, isEqual);
BottomSheetModal.displayName = 'BottomSheetModal';

export default BottomSheetModal;
1 change: 1 addition & 0 deletions src/components/flatList/FlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ const BottomSheetFlatListComponent = forwardRef(
);

const BottomSheetFlatList = memo(BottomSheetFlatListComponent, isEqual);
BottomSheetFlatList.displayName = 'BottomSheetFlatList';

export default (BottomSheetFlatList as any) as typeof BottomSheetFlatListType;
1 change: 1 addition & 0 deletions src/components/scrollView/ScrollView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ const BottomSheetScrollViewComponent = forwardRef(
);

const BottomSheetScrollView = memo(BottomSheetScrollViewComponent, isEqual);
BottomSheetScrollView.displayName = 'BottomSheetScrollView';

export default (BottomSheetScrollView as any) as typeof BottomSheetScrollViewType;
1 change: 1 addition & 0 deletions src/components/sectionList/SectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ const BottomSheetSectionListComponent = forwardRef(
);

const BottomSheetSectionList = memo(BottomSheetSectionListComponent, isEqual);
BottomSheetSectionList.displayName = 'BottomSheetSectionList';

export default (BottomSheetSectionList as any) as typeof BottomSheetSectionListType;
1 change: 1 addition & 0 deletions src/components/view/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ const BottomSheetViewComponent = ({
};

const BottomSheetView = memo(BottomSheetViewComponent, isEqual);
BottomSheetView.displayName = 'BottomSheetView';

export default BottomSheetView;

0 comments on commit 36a76f6

Please sign in to comment.