File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from 'react' ;
12import styled from 'styled-components' ;
23
34export const BottomSheetWrapper = styled . div < { $isOpenBottomSheet : boolean } > `
@@ -39,7 +40,7 @@ export const BottomSheetLayout = styled.div<{
3940 transition: transform 0.3s;
4041` ;
4142
42- export const Handler = styled . hr `
43+ export const Handler = React . memo ( styled . hr `
4344 width: 3rem;
4445 margin: 0 auto;
4546 height: 0.25rem;
@@ -48,4 +49,4 @@ export const Handler = styled.hr`
4849 border-radius: 0.125rem;
4950 z-index: 300;
5051 cursor: pointer;
51- ` ;
52+ ` ) ;
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { StyledText } from '../Text/StyledText';
22import theme from '../../styles/theme' ;
33import { BottomSheetMenuLayout , SheetItem , Icon } from './styles' ;
44import { BottomSheetMenuProps , SheetItemDto } from './dto' ;
5+ import React from 'react' ;
56
6- const BottomSheetMenu : React . FC < BottomSheetMenuProps > = ( { items, marginBottom } ) => {
7+ const BottomSheetMenu : React . FC < BottomSheetMenuProps > = React . memo ( ( { items, marginBottom } ) => {
78 return (
89 < BottomSheetMenuLayout $marginBottom = { marginBottom } >
910 { items . map ( ( item : SheetItemDto , index ) => (
@@ -19,6 +20,6 @@ const BottomSheetMenu: React.FC<BottomSheetMenuProps> = ({ items, marginBottom }
1920 ) ) }
2021 </ BottomSheetMenuLayout >
2122 ) ;
22- } ;
23+ } ) ;
2324
2425export default BottomSheetMenu ;
You can’t perform that action at this time.
0 commit comments