Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE][FEAT]detail 디자인수정 #120

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FITple-Frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function App() {
<Route path="/cloth" element={<ClothmainPage />} />
<Route path="/clothdetail/:clothId" element={<ClothdetailPage />} />
<Route path="/clothregister" element={<ClothregisterPage />} />
<Route path="/clothupdate" element={<ClothupdatePage />} />
<Route path="/clothupdate/:clothId" element={<ClothupdatePage />} />
{/* 프로필페이지 */}
<Route path="/profile" element={<ProfilePage />} />
<Route path="/profile/edit" element={<ProfileEditPage />} />
Expand Down
7 changes: 6 additions & 1 deletion FITple-Frontend/src/components/UserItem/UserItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const UserItem = ({ ...props }) => {
const navgateToDetail = () => {
navigate(`/clothdetail/${item.cloth_id}`);
};
const navgateToEdit = () => {
navigate(`/clothupdate/${item.cloth_id}`);
};
const [isOpen, setIsOpen] = useState(false);
// 더미데이터
const dummyItem = {
Expand Down Expand Up @@ -77,7 +80,9 @@ const UserItem = ({ ...props }) => {
<OptionImg src={OptionIcon} />
</OptionBTN>
<OptionBox $active={isOpen}>
<OptionItem $first>옷 정보 수정하기</OptionItem>
<OptionItem $first onClick={navgateToEdit}>
옷 정보 수정하기
</OptionItem>
<OptionItem $last>옷 정보 삭제하기</OptionItem>
</OptionBox>
</BrandWrap>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function ClothdetailPage() {
<Detailbox>{clothData.product_code}</Detailbox>
</DetailboxContainer>
<DetailName>URL</DetailName>
<Detailbox>
<Detailbox style={{ justifyContent: `flex-start` }}>
<a href={clothData.URL} target="_blank" rel="noopener noreferrer">
{clothData.URL}
</a>
Expand Down
Loading