Skip to content

Commit

Permalink
feat: ux 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeseungyun committed Sep 12, 2024
1 parent 751feba commit c5d9ba8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
font-weight: 500;
background-color: white;
color: #4b4b4b;
transition: scale 0.25s;
cursor: pointer;

&:active {
scale: 0.95;
}
}

&--upload {
Expand All @@ -67,6 +73,11 @@
font-weight: 500;
background-color: #175c8e;
color: white;
transition: scale 0.25s;
cursor: pointer;

&:active {
scale: 0.95;
}
}
}
1 change: 1 addition & 0 deletions src/page/Auth/Signup/components/fileUploadModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function FileUploadModal({ onClose, onUpload }: FileUploadModalPr
<input
type="file"
multiple
accept="image/*"
className={styles['file-input']}
onChange={handleFileChange}
style={{ display: 'none' }}
Expand Down
2 changes: 1 addition & 1 deletion src/page/Auth/Signup/components/ownerInfoStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function OwnerInfoStep({ onSearch, setIsStepComplete }: OwnerInfo
<button
type="button"
className={styles['search-button']}
onClick={onSearch}
onClick={() => setTimeout(onSearch, 250)}
>
가게 검색
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
color: #fff;
font-size: 13px;
font-weight: 500;
transition: scale 0.25s;

&:active {
scale: 0.95;
}
}

.shop-name,
Expand Down
6 changes: 6 additions & 0 deletions src/page/Auth/components/Common/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,11 @@
border-radius: 4px;
font-weight: 600;
color: white;
cursor: pointer;
transition: scale 0.25s;

&:active {
scale: 0.95;
}
}
}
5 changes: 4 additions & 1 deletion src/page/Auth/components/Common/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { phoneRegisterUser } from 'api/register';
import { isKoinError, sendClientError } from '@bcsdlab/koin';
import { useStep } from 'page/Auth/hook/useStep';
import sha256 from 'utils/ts/SHA-256';
import { useDebounce } from 'utils/hooks/useDebounce';
// eslint-disable-next-line
import Done from '../Done/index';
import styles from './index.module.scss';
Expand Down Expand Up @@ -118,6 +119,8 @@ export default function CommonLayout() {
}
};

const debounce = useDebounce<null>(stepCheck, null);

const handleSelectComplete = () => {
setIsSearch(false);
steps.setIsStepComplete(true);
Expand Down Expand Up @@ -165,7 +168,7 @@ export default function CommonLayout() {
{!isComplete && !isSearch && (
<button
type="button"
onClick={stepCheck}
onClick={debounce}
disabled={!isStepComplete}
className={
cn({
Expand Down

0 comments on commit c5d9ba8

Please sign in to comment.