Skip to content

Commit

Permalink
test:#5 action modal css 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
dalzzy committed Jan 4, 2025
1 parent d75816b commit 5f3fff6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/components/SignUp/ProfileImgStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const ProfileImgStep: React.FC<{ onNext: () => void }> = ({ onNext }) => {
<ActionModal
isOpen={isModalOpen}
onClose={handleModalClose}
title="프로필 사진 설정"
actions={[
{
label: '앨범에서 선택',
Expand Down
18 changes: 10 additions & 8 deletions src/components/common/Modal/ActionModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { NONAME } from 'dns';
import React from 'react';

interface Action {
Expand Down Expand Up @@ -28,12 +29,10 @@ const ActionModal: React.FC<ActionModalProps> = ({
{actions.map((action, index) => (
<button key={index} onClick={action.onClick} style={styles.button}>
{action.label}
{index < actions.length - 1 && <div style={styles.divider} />}
</button>
))}
</div>
<button onClick={onClose} style={styles.closeButton}>
닫기
</button>
</div>
</div>
);
Expand All @@ -58,14 +57,19 @@ const styles: { [key: string]: React.CSSProperties } = {
modal: {
width: '90%',
maxWidth: '400px',
backgroundColor: '#fff',
backgroundColor: '#f1f1f1',
borderRadius: '12px',
padding: '20px',
display: 'flex',
flexDirection: 'column',
gap: '10px',
position: 'relative',
},
divider: {
height: '1px',
backgroundColor: '#ccc',
margin: '0',
},
title: {
fontSize: '18px',
fontWeight: 'bold',
Expand All @@ -75,13 +79,11 @@ const styles: { [key: string]: React.CSSProperties } = {
actions: {
display: 'flex',
flexDirection: 'column',
gap: '10px',
},
button: {
padding: '10px',
fontSize: '14px',
backgroundColor: '#f9f9f9',
border: '1px solid #ccc',
fontSize: '20px',
border: 'none',
borderRadius: '5px',
cursor: 'pointer',
textAlign: 'center',
Expand Down

0 comments on commit 5f3fff6

Please sign in to comment.