Skip to content

Commit d1665ce

Browse files
committed
; Please enter a commit message to explain why this merge is necessary, ; especially if it merges an updated upstream into a topic branch. ; ; Lines starting with ';' will be ignored, and an empty message aborts ; the commit.
2 parents 9081d0f + fc5ea83 commit d1665ce

File tree

29 files changed

+830
-424
lines changed

29 files changed

+830
-424
lines changed
319 KB
Loading
1.29 MB
Loading

src/components/coffeechat/upload/CoffeechatForm/BottomSheetSelect/index.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ interface BottomSheetSelectProps {
2121
onChange: (value: string) => void;
2222
icon?: ReactNode;
2323
className?: string;
24+
disabled?: boolean;
2425
}
2526

2627
const BottomSheetSelect = ({
@@ -31,6 +32,7 @@ const BottomSheetSelect = ({
3132
onChange,
3233
icon,
3334
className,
35+
disabled = false,
3436
}: BottomSheetSelectProps) => {
3537
const [open, setOpen] = useState(false);
3638
const [selectedValue, setSelectedValue] = useState(value);
@@ -62,15 +64,24 @@ const BottomSheetSelect = ({
6264
};
6365
}, [open]);
6466

67+
useEffect(() => {
68+
setSelectedValue(value);
69+
setTemporaryValue(value);
70+
}, [value]);
71+
6572
const getSelectedLabel = (value: string) => {
66-
return options.find((option) => option.value === value)?.label;
73+
return options.find((option) => option.value === value)?.label || value;
6774
};
6875

6976
return (
7077
<Container>
71-
<InputField onClick={handleOpen} className={className}>
72-
{selectedValue ? <p>{getSelectedLabel(selectedValue)}</p> : <p style={{ color: '#808087' }}>{placeholder}</p>}
73-
{icon || (
78+
<InputField onClick={handleOpen} className={className} disabled={disabled}>
79+
{selectedValue !== null && selectedValue !== undefined ? (
80+
<p>{getSelectedLabel(selectedValue)}</p>
81+
) : (
82+
<p style={{ color: '#808087' }}>{placeholder}</p>
83+
)}
84+
{!icon && !disabled && (
7485
<IconChevronDown
7586
style={{
7687
width: 20,
@@ -115,7 +126,7 @@ const Container = styled.div`
115126
position: relative;
116127
`;
117128

118-
const InputField = styled.div`
129+
const InputField = styled.div<{ disabled: boolean }>`
119130
display: flex;
120131
gap: 12px;
121132
align-items: center;
@@ -127,6 +138,7 @@ const InputField = styled.div`
127138
${fonts.BODY_16_M};
128139
129140
width: 100%;
141+
pointer-events: ${({ disabled }) => disabled && 'none'};
130142
`;
131143

132144
const Overlay = styled.div`

src/components/common/EditableSelect.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Meta, StoryFn } from '@storybook/react';
22

3-
import { LINK_TITLES } from '@/components/members/upload/constants';
43
import MemberSelectOptions from '@/components/members/upload/forms/SelectOptions';
54

65
import EditableSelect from './EditableSelect';
@@ -11,7 +10,7 @@ export default {
1110

1211
const Template: StoryFn<typeof EditableSelect> = (args) => (
1312
<EditableSelect {...args}>
14-
<MemberSelectOptions options={LINK_TITLES} />
13+
<MemberSelectOptions options={['option1', 'option2', 'option3']} />
1514
</EditableSelect>
1615
);
1716

src/components/common/HomePopup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export const HomePopup = () => {
6060
<StPopupModal>
6161
<Responsive only='desktop'>
6262
<LoggingClick eventKey='adPopupBody'>
63-
<a href='https://playground.sopt.org/group/list?category=번쩍'>
64-
<StImage src='/icons/img/crew_home_popup_mo.png' />
63+
<a href='https://playground.sopt.org/mySoptReport'>
64+
<StImage src='/icons/img/SoptReport/popup/PC.png' />
6565
</a>
6666
</LoggingClick>
6767
</Responsive>
6868
<Responsive only='mobile'>
6969
<LoggingClick eventKey='adPopupBody'>
70-
<a href='https://playground.sopt.org/group/list?category=번쩍'>
71-
<StImage src='/icons/img/crew_home_popup_mo.png' />
70+
<a href='https://playground.sopt.org/mySoptReport'>
71+
<StImage src='/icons/img/SoptReport/popup/MO.png' />
7272
</a>
7373
</LoggingClick>
7474
</Responsive>

src/components/common/ImageUploader/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const StyledInput = styled.input`
141141
`;
142142

143143
const StyledPreview = styled.img`
144-
border-radius: 6px;
144+
border-radius: 26px;
145145
width: inherit;
146146
height: inherit;
147147
object-fit: cover;
@@ -184,14 +184,15 @@ const StyledEditButton = styled.button`
184184
border-top-left-radius: 25px;
185185
border-bottom-left-radius: 25px;
186186
cursor: pointer;
187+
line-height: 0;
187188
188189
${editButtonStyle}
189190
190191
&::after {
191192
position: absolute;
192193
top: 10px;
193194
right: 0;
194-
background-color: ${colors.gray600};
195+
background-color: ${colors.gray400};
195196
width: 1px;
196197
height: 14px;
197198
content: '';

src/components/common/Modal/useConfirm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const useConfirm = () => {
1919
okButtonTextColor?: string;
2020
zIndex?: number;
2121
maxWidth?: number;
22+
hideCloseButton?: boolean;
2223
}) =>
2324
new Promise<boolean>((resolve) => {
2425
open(({ isOpen, close }) => (
@@ -29,6 +30,7 @@ const useConfirm = () => {
2930
close();
3031
}}
3132
zIndex={options.zIndex}
33+
hideCloseButton={true}
3234
>
3335
<StyledModalContent maxWidth={options.maxWidth}>
3436
<Modal.Title>{options.title}</Modal.Title>

src/components/common/MonthPicker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ export default function MonthPicker({ onChange, value, placeholder }: MonthPicke
2828
const StyledDatePicker = styled(DatePicker)`
2929
box-sizing: border-box;
3030
transition: all 0.2s;
31-
border: 1.5px solid ${colors.gray700};
31+
border: 1.5px solid ${colors.gray800};
3232
border-radius: 6px;
33-
background-color: ${colors.gray700};
34-
padding: 14px 20px;
33+
background-color: ${colors.gray800};
34+
padding: 11px 16px;
3535
width: 100%;
36-
color: ${colors.gray10};
36+
color: ${colors.gray300};
3737
${textStyles.SUIT_16_M};
3838
3939
&::placeholder {

src/components/members/upload/AddableItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const MobileDeleteButton = styled.button<{ isVisible: boolean }>`
7474
align-self: flex-end;
7575
margin-top: 20px;
7676
margin-right: 5px;
77-
color: ${colors.gray300};
78-
font-size: 15px;
77+
color: ${colors.gray200};
78+
font-size: 14px;
7979
font-weight: 600;
8080
8181
${({ isVisible }) => isVisible || 'visibility: hidden;'}

src/components/members/upload/AddableWrapper.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,22 @@ const MobileAddButton = styled.button`
6262
6363
@media ${MOBILE_MEDIA_QUERY} {
6464
display: flex;
65-
gap: 11px;
65+
gap: 4px;
6666
align-items: center;
6767
justify-content: center;
6868
margin-top: 20px;
6969
border: 1px solid ${colors.gray50};
7070
border-radius: 12px;
71-
padding: 16px 0;
71+
padding: 13px 0;
7272
width: 100%;
7373
color: ${colors.gray50};
74+
75+
${textStyles.SUIT_14_SB}
76+
77+
& svg {
78+
width: 12px;
79+
height: 12px;
80+
}
7481
}
7582
`;
7683

src/components/members/upload/CheckActivity/CheckSoptActivity.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function CheckSoptActivity() {
4949
.map(({ generation, team, part }) => ({
5050
generation: `${generation}기`,
5151
part,
52-
team: team ?? UNSELECTED,
52+
team: team ?? '',
5353
})),
5454
});
5555
}

0 commit comments

Comments
 (0)