Skip to content

Commit 6dd863e

Browse files
committed
Merge branch 'dev' of https://github.com/oodd-team/oodd-web-react into feat/OD-148
2 parents cdae57e + 5a9b6f0 commit 6dd863e

44 files changed

Lines changed: 195 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/apis/chatting/dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// base response 형태를 따르지 않으므로 data 접미사를 사용했습니다.
33
// response
44
export interface ChatRoomData {
5-
chatRoomId: number;
5+
id: number;
66
otherUser: OtherUserDto;
77
latestMessage: LatestMessageDto;
88
}
99

1010
export interface OtherUserDto {
1111
id: number;
1212
nickname: string;
13-
profileUrl: string;
13+
profilePictureUrl: string;
1414
}
1515

1616
export interface LatestMessageDto {

src/apis/matching/dto.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseSuccessResponse } from '../core/dto';
1+
import type { BaseSuccessResponse } from '@apis/core/dto';
22

33
// 매칭 요청
44
// request
@@ -12,36 +12,37 @@ export interface CreateMatchingRequest {
1212
export type CreateMatchingResponse = BaseSuccessResponse<CreateMatchingData>;
1313

1414
export interface CreateMatchingData {
15+
id: number; // matchingId
1516
chatRoomId: number;
16-
fromUserId: number;
17-
toUserId: number;
17+
requesterId: number;
18+
targetId: number;
1819
}
1920

2021
// 매칭 리스트 조회
2122
// response
2223
export type GetMatchingListResponse = BaseSuccessResponse<GetMatchingListData>;
2324

2425
export interface GetMatchingListData {
25-
isMatching: boolean; // 매칭 요청 존재 여부
26-
matchingsCount: number; // 매칭 요청 개수
26+
hasMatching: boolean;
27+
matchingsCount: number;
2728
matching: MatchingDto[];
2829
}
2930

3031
export interface MatchingDto {
31-
matchingId: number;
32+
id: number; // matchingId
3233
requester: RequesterDto;
33-
requesterPost: RequesterPostDto;
3434
}
3535

3636
export interface RequesterDto {
37-
requesterId: number;
37+
id: number; // requesterId
3838
nickname: string;
3939
profilePictureUrl: string;
40+
representativePost: RepresentativePost;
4041
}
4142

42-
export interface RequesterPostDto {
43-
postImages: PostImageDto[]; // 대표 게시글 이미지
44-
styleTags: string[]; // 게시글 스타일 태그
43+
export interface RepresentativePost {
44+
postImages: PostImageDto[];
45+
styleTags: string[];
4546
}
4647

4748
export interface PostImageDto {
@@ -59,7 +60,7 @@ export interface ModifyMatchingStatusRequest {
5960
export type ModifyMatchingStatusResponse = BaseSuccessResponse<ModifyMatchingStatusData>;
6061

6162
export interface ModifyMatchingStatusData {
62-
matchingId: number;
63+
id: number; // matchingId
6364
requesterId: number;
6465
targetId: number;
6566
requestStatus: string;

src/apis/matching/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { newRequest } from '../core';
2-
import {
1+
import { newRequest } from '@apis/core';
2+
import type {
33
CreateMatchingRequest,
44
CreateMatchingResponse,
55
GetMatchingListResponse,

src/components/BottomSheet/OptionsBottomSheet/ReportBottomSheetMenu/styles.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,27 @@ export const InputLayout = styled.div`
1111
flex-direction: column;
1212
justify-content: center;
1313
align-items: center;
14+
background-color: ${({ theme }) => theme.colors.background.primary};
15+
padding: 0 1rem;
16+
margin-bottom: 6.25rem;
17+
margin-top: -1rem;
1418
1519
textarea {
1620
display: block;
1721
width: 100%;
1822
height: 5.25rem;
19-
border-radius: 0.5rem;
20-
border: 0.0625rem solid #ededed;
21-
margin-bottom: 5.25rem;
22-
margin-top: -1rem;
23+
padding: 0.8rem 0.9375rem;
2324
outline: none;
24-
padding: 1rem 0.9375rem;
25+
border-radius: 0.5rem;
26+
border: 0.0625rem solid ${({ theme }) => theme.colors.border.divider};
2527
${({ theme }) => theme.fontStyles['body1-medium']};
26-
line-height: 1.25%;
27-
color: #1d1d1d;
28-
background-color: #f8f8f8;
28+
color: ${({ theme }) => theme.colors.text.primary};
29+
background-color: ${({ theme }) => theme.colors.background.secondary};
2930
resize: none;
31+
32+
&::placeholder {
33+
color: ${({ theme }) => theme.colors.text.tertiary};
34+
${({ theme }) => theme.fontStyles['body2-regular']};
35+
}
3036
}
3137
`;

src/components/BottomSheet/OptionsBottomSheet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const OptionsBottomSheet: React.FC<OptionsBottomSheetProps> = ({
200200
<ReportModalWrapper onClick={handleBackgroundClick}>
201201
<ReportModalContainer>
202202
<ReportModalHeader>
203-
<StyledText $textTheme={{ style: 'heading1-bold' }} color={theme.colors.white}>
203+
<StyledText $textTheme={{ style: 'heading1-bold' }} color={theme.colors.text.contrast}>
204204
신고 사유 선택
205205
</StyledText>
206206
<CloseButton

src/components/BottomSheet/OptionsBottomSheet/styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const ReportModalContainer = styled.div`
3333
justify-content: center;
3434
align-items: center;
3535
border-radius: 0.38rem;
36-
background-color: ${({ theme }) => theme.colors.white};
36+
background-color: ${({ theme }) => theme.colors.background.primary};
3737
`;
3838

3939
export const ReportModalHeader = styled.header`
@@ -44,7 +44,7 @@ export const ReportModalHeader = styled.header`
4444
justify-content: space-between;
4545
align-items: center;
4646
border-radius: 0.38rem 0.38rem 0 0;
47-
background: ${({ theme }) => theme.colors.gradient};
47+
background: ${({ theme }) => theme.colors.brand.gradient};
4848
`;
4949

5050
export const ReportModalBox = styled.section`

src/components/BottomSheet/styles.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const BottomSheetLayout = styled.div.attrs<{ $currentTranslateY: number;
3131
max-width: 512px;
3232
left: 50%;
3333
border-radius: 0.938rem 0.938rem 0 0;
34-
background-color: ${({ theme }) => theme.colors.white};
34+
background-color: ${({ theme }) => theme.colors.background.primary};
3535
padding: 0 1.25rem;
3636
z-index: 200;
3737
user-select: none;
@@ -43,7 +43,7 @@ export const Handler = React.memo(styled.hr`
4343
width: 2.88rem;
4444
margin: 0.6rem auto 0 auto;
4545
height: 0.125rem;
46-
background-color: #d9d9d9;
46+
background-color: ${({ theme }) => theme.colors.gray[300]};
4747
border: none;
4848
border-radius: 0.125rem;
4949
z-index: 300;
@@ -56,7 +56,7 @@ export const SideBarLayout = styled.div<{ $isSideBarOpen: boolean }>`
5656
height: 100%;
5757
position: fixed;
5858
right: 0;
59-
background: white;
59+
background: ${({ theme }) => theme.colors.background.primary};
6060
transform: translateX(${({ $isSideBarOpen }) => ($isSideBarOpen ? 0 : '100%')});
6161
transition: transform 0.3s;
6262
`;

src/components/BottomSheetMenu/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import { StyledText } from '@components/Text/StyledText';
22
import { BottomSheetMenuLayout, SheetItem, IconButton } from './styles';
33
import type { BottomSheetMenuProps, SheetItemDto } from './dto';
44
import React from 'react';
5+
import theme from '@styles/theme';
56

67
const BottomSheetMenu: React.FC<BottomSheetMenuProps> = React.memo(({ items }) => {
78
return (
89
<BottomSheetMenuLayout>
910
{items.map((item: SheetItemDto, index) => (
1011
<div key={index}>
1112
<SheetItem onClick={item.action}>
12-
<StyledText $textTheme={{ style: 'body1-medium' }} color={'#7b7b7b'}>
13+
<StyledText $textTheme={{ style: 'body1-medium' }} color={theme.colors.text.tertiary}>
1314
{item.text}
1415
</StyledText>
1516
{item.icon && (

src/components/BottomSheetMenu/styles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const SheetItem = styled.li`
1313
align-items: center;
1414
justify-content: space-between;
1515
cursor: pointer;
16-
border-bottom: 1px solid rgb(0, 0, 0, 0.2);
16+
border-bottom: 1px solid ${({ theme }) => theme.colors.gray[300]};
1717
`;
1818

1919
export const IconButton = styled.button`

src/components/CommentBottomSheet/Comment/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { StyledText } from '@components/Text/StyledText';
22
import { CommentLayout, SendContainer, CommentTextarea, SendButton } from './styles';
33
import send from '@assets/default/send-comment.svg';
44
import React, { useEffect, useRef, useState } from 'react';
5-
import { CommentProps } from './dto';
5+
import type { CommentProps } from './dto';
66

77
const Comment: React.FC<CommentProps> = ({ content, sendComment, isModal = false }) => {
88
const [comment, setComment] = useState('');

0 commit comments

Comments
 (0)