Skip to content

Commit

Permalink
sdp-tech#115 feat : Profile tab name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kimheonningg committed Sep 30, 2024
1 parent 71b00fe commit c5855b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/components/Home/Market/InfoPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Tabs } from 'react-native-collapsible-tab-view';
import styled from 'styled-components/native';
import { Body14R, Body16B } from '../../../styles/GlobalText';

//TODO: ReformerProfilePage로 이름 수정
const InfoPage = () => {
const data = [
{
Expand Down
11 changes: 2 additions & 9 deletions src/components/Home/Market/MarketTabView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ const MarketTabView = ({
route,
}: StackScreenProps<HomeStackParams, 'Market'>) => {
const [routes] = useState([
{ key: 'info', title: '정보' },
{ key: 'profile', title: '프로필' },
{ key: 'service', title: '서비스' },
{ key: 'review', title: '리뷰' },
]);
const flatListRef = useRef<FlatList>(null);
const scrollRef = useRef<ScrollView | null>(null);
Expand Down Expand Up @@ -151,19 +150,13 @@ const MarketTabView = ({
)}>
{routes.map(route => (
<Tabs.Tab key={route.key} name={route.title}>
{route.key === 'info' && <InfoPage />}
{route.key === 'profile' && <InfoPage />}
{route.key === 'service' && (
<View>
<ServicePage scrollViewRef={scrollRef} />
<ScrollTopButton scrollViewRef={scrollRef} />
</View>
)}
{route.key === 'review' && (
<View>
<ReviewPage flatListRef={flatListRef} />
<ScrollToTopButton flatListRef={flatListRef} />
</View>
)}
</Tabs.Tab>
))}
</Tabs.Container>
Expand Down

0 comments on commit c5855b2

Please sign in to comment.