Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
in-mai-space committed Jun 13, 2024
1 parent 12d74ea commit a104a7d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 35 deletions.
6 changes: 4 additions & 2 deletions frontend/mobile/src/app/(app)/(tabs)/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type ProfileItemProps = {
onPress?: () => void;
};


Check failure on line 27 in frontend/mobile/src/app/(app)/(tabs)/profile.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `⏎⏎`

const ProfileItem = ({ icon, text, textColor, onPress }: ProfileItemProps) => (
<TouchableOpacity onPress={onPress}>
<Box
Expand Down Expand Up @@ -66,13 +68,13 @@ const ProfilePage = () => {
</Box>
<Box width="100%">
<ProfileItem
onPress={() => router.push('/user/details/1')}
onPress={() => router.push('/user/detail/')}
icon={faUser}
text="Edit Profile"
/>
<ProfileItem
icon={faHeart}
onPress={() => router.push('/user/interests/1')}
onPress={() => router.push('/user/interest/')}
text="Edit Interests"
/>
<Box
Expand Down
6 changes: 2 additions & 4 deletions frontend/mobile/src/app/(app)/user/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import { Stack } from 'expo-router';
const Layout = () => {
return (
<Stack>
<Stack.Screen name="interests" options={{ headerShown: false }} />
<Stack.Screen name="interest" options={{ headerShown: false }} />
<Stack.Screen
name="details"
name="detail"
options={{
headerTitle: '',
headerTransparent: true,
headerShown: false
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { UserInfoData } from '@/src/types/userInfo';
import { convertUserData } from '@/src/utils/userInfo';

import { Save } from '../components/save';
import { Save } from './components/save';

const mockUserData = {
name: 'Jane Doe',
Expand Down
13 changes: 0 additions & 13 deletions frontend/mobile/src/app/(app)/user/details/_layout.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useCategories } from '@/src/hooks/use-categories';
import { useTags } from '@/src/hooks/use-tags';
import { formatCategoryOrTag } from '@/src/utils/string';

import { Save } from '../components/save';
import { Save } from './components/save';

type UserInterestsData = {
tags: Tag[];
Expand Down Expand Up @@ -51,7 +51,7 @@ const mockTags: Tag[] = [
}
];

export const UserInterest = () => {
const UserInterest = () => {
const { height } = Dimensions.get('window');
const { handleSubmit } = useForm<UserInterestsData>();

Expand Down
13 changes: 0 additions & 13 deletions frontend/mobile/src/app/(app)/user/interests/_layout.tsx

This file was deleted.

0 comments on commit a104a7d

Please sign in to comment.