Skip to content

Commit

Permalink
Merge pull request #122 from KUIT-Space/bug/#119/게시판-좋아요-및-등록-버그
Browse files Browse the repository at this point in the history
Hotfix: 게시판 버튼 및 background-image 경로 이슈
  • Loading branch information
hyunn522 authored Aug 20, 2024
2 parents 084aa1d + 9932657 commit acb6ed0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/pages/BoardPage/BoardPage.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export const BoardHeader = styled.div`
}
`;

export const BoardFloatingBtn = styled.img`
position: fixed;
bottom: 5.625rem;
right: 3rem;
`;

export const BoardPostItemEmpty = styled.div`
margin-top: 16rem;
display: flex;
Expand Down
10 changes: 7 additions & 3 deletions src/pages/BoardPage/BoardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import { useNavigate } from "react-router-dom";

import { BoardPost, getAllPosts } from "@/apis/Board/BoardReadApi";
import arrowDown from "@/assets/Board/chevron_down.svg";
import floating from "@/assets/Board/floating.svg";
import search from "@/assets/Board/search.svg";
import TopBarText, { LeftEnum } from "@/components/TopBarText";
import BoardBottomModal from "@/pages/BoardPage/BoardBottomModal";
import { BoardHeader, BoardPostItemEmpty } from "@/pages/BoardPage/BoardPage.styled";
import {
BoardFloatingBtn,
BoardHeader,
BoardPostItemEmpty,
} from "@/pages/BoardPage/BoardPage.styled";
import BoardPostItem from "@/pages/BoardPage/BoardPostItem";
import { AddChatBtn } from "@/pages/ChatPage/ChatAddBtn.styled";

export type boardSelectedOptionType = {
id: string;
Expand Down Expand Up @@ -82,7 +86,7 @@ const BoardPage = () => {
<br />첫 게시글을 작성해보세요!
</BoardPostItemEmpty>
)}
<AddChatBtn onClick={() => navigate("/board/register")} />
<BoardFloatingBtn src={floating} onClick={() => navigate("/board/register")} />
<BoardBottomModal
selectedOption={selectedOption}
onSelect={setSelectedOption}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/ChatPage/ChatCreatePage/ChatCreatePage.styled.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import styled from "styled-components";

import SearchIcon from "@/assets/ChatPage/icon_search.svg";
// import SearchIcon from "@/assets/ChatPage/icon_search.svg";
import { BottomBtn } from "@/components/BottomBtn";
import { Input } from "@/components/Input";

import SearchIcon from "../../../assets/ChatPage/icon_search.svg";

export const ChatroomAddImgBtn = styled.label<{ $backgroundImage: string | null }>`
display: flex;
width: 8.5rem;
Expand Down

0 comments on commit acb6ed0

Please sign in to comment.