Skip to content

Commit

Permalink
Merge branch 'feat/#186/MyBookList' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
llmeajinll committed Jan 22, 2023
2 parents a5b8394 + 44774fb commit 42a2b01
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions frontend/src/Pages/BR/MyBookList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import styled, { ThemeProvider } from 'styled-components';
import { palette } from 'styled-tools';
import theme from '../../Components/Color';
Expand All @@ -17,7 +18,7 @@ const WrapContent = styled.div`
height: fit-content;
margin-bottom: 2rem;
background-color: ${palette('PsCocoa', 0)};
border: 2px solid black;
border: 0.01px solid ${palette('PsCocoa', 0)};
`;
const WrapList = styled.div`
width: 50rem;
Expand All @@ -30,6 +31,7 @@ const WrapList = styled.div`

const ListTitle = styled.div`
font-size: 1.5rem;
font-weight: bold;
color: ${palette('PsYellow')};
margin-bottom: 1rem;
`;
Expand Down Expand Up @@ -83,7 +85,7 @@ const State = styled.div`
const WrapStateButton = styled.div`
width: 6rem;
text-align: center;
pointer-events: none;
/* pointer-events: none; */
`;

const PostDate = styled.div`
Expand All @@ -93,6 +95,7 @@ const PostDate = styled.div`

const BorrowUser = styled.div`
width: 9rem;
text-align: center;
//border: 1px solid grey;
`;

Expand All @@ -102,10 +105,10 @@ const ReturnDate = styled.div`
`;

function MyBookList() {
// const navigate = useNavigate();
// const navigateToReview = () => {
// navigate('/ReviewRegister');
// };
const navigate = useNavigate();
const navigateToReview = () => {
navigate('/ReviewRegister');
};

return (
<ThemeProvider theme={theme}>
Expand All @@ -127,7 +130,13 @@ function MyBookList() {
<PostUser>2019156014 김혜진</PostUser>
<State>반납 완료</State>
<WrapStateButton>
<Button width='6rem' height='1.5rem' name='리뷰쓰기' />
<Button
width='6rem'
height='1.5rem'
name='리뷰쓰기'
background={palette('PsYellow')}
onClick={navigateToReview}
/>
</WrapStateButton>
</BookList>

Expand Down

0 comments on commit 42a2b01

Please sign in to comment.