Skip to content

Commit

Permalink
feat: step 상태에 따라 button 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeseungyun committed Jun 5, 2024
1 parent 4b79879 commit 22d210e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/page/Auth/components/Common/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function CommonLayout() {

const steps = useStep(isFindPassword ? 'find' : 'register');
const {
nextStep, previousStep, currentStep, index, totalStep, isComplete,
nextStep, previousStep, currentStep, index, totalStep, isComplete, isStepComplete,
} = steps;

// eslint-disable-next-line
Expand Down Expand Up @@ -92,10 +92,10 @@ export default function CommonLayout() {
<button
type="button"
onClick={stepCheck}
disabled={!!errors.root}
disabled={!isStepComplete}
className={
cn({
[styles.button__active]: !!errors.root,
[styles.button__active]: isStepComplete || isComplete,
[styles.button]: true,
})
}
Expand Down

0 comments on commit 22d210e

Please sign in to comment.