Skip to content

Commit

Permalink
sdp-tech#77 feat: add lookbook list profile
Browse files Browse the repository at this point in the history
  • Loading branch information
eujin-shin committed Jul 10, 2024
1 parent 6b5e3e0 commit 5fefe94
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/assets/lookbook/Avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/components/Lookbook/ProfileInfo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { StyleSheet, View } from 'react-native';
import AvatarIcon from '../../assets/lookbook/Avatar.svg';
import { Body14M } from '../../styles/GlobalText';

interface ProfileProps {
name: string;
image: undefined;
}

const ProfileInfo = ({ name, image }: ProfileProps) => {
return (
<View style={Styles.container}>
{image ? <></> : <AvatarIcon />}
<Body14M>{name}</Body14M>
</View>
);
};

const Styles = StyleSheet.create({
container: {
flexDirection: 'row',
gap: 8,
alignSelf: 'flex-start',
},
});

export default ProfileInfo;
8 changes: 8 additions & 0 deletions src/pages/ComponentsTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TextToggle from '../common/TextToggle';
import Toggle from '../common/Toggle';
import ListItem from '../components/Lookbook/ListItem';
import LookbookList from '../components/Lookbook/LookbookList';
import ProfileInfo from '../components/Lookbook/ProfileInfo';

const TestDropdown = ({ index }: { index: number }) => {
const [value, setValue] = useState<string | undefined>(undefined);
Expand Down Expand Up @@ -40,6 +41,13 @@ export default function ComponentsTest() {
<LookbookAddButton onPress={() => {}} />
<TestToggle />
<LookbookList />
<View
style={{
width: '100%',
flexDirection: 'row',
}}>
<ProfileInfo name="업씨러01" image={undefined} />
</View>
</View>
</View>
</SafeAreaView>
Expand Down

0 comments on commit 5fefe94

Please sign in to comment.