Skip to content

Commit

Permalink
refactor: disabled condition change
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Sep 24, 2024
1 parent bd40bc9 commit 9fd50e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ui/components/user-domain/category-preset-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ export const CategoryPresetButtons = () => {
<PresetButton
onClick={() => handleCategoryButtonClick('ADMISSION_GUIDELINE')}
isSelected={selectedCategoryButton === 'ADMISSION_GUIDELINE'}
disabled={referenceButtonDisabled}
disabled={!referenceButtonDisabled}
>
모집관련내용
</PresetButton>
<PresetButton
onClick={() => handleCategoryButtonClick('PASSING_RESULT')}
isSelected={selectedCategoryButton === 'PASSING_RESULT'}
disabled={referenceButtonDisabled}
disabled={!referenceButtonDisabled}
>
전년도 입시결과
</PresetButton>
<PresetButton
onClick={() => handleCategoryButtonClick('PAST_QUESTIONS')}
isSelected={selectedCategoryButton === 'PAST_QUESTIONS'}
disabled={referenceButtonDisabled}
disabled={!referenceButtonDisabled}
>
면접등 기출문제
</PresetButton>
Expand Down
6 changes: 3 additions & 3 deletions src/ui/components/user-domain/type-preset-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ export const TypePresetButtons = () => {
return (
<div className="flex space-x-2">
<PresetButton
disabled={activeSusi || referenceButtonDisabled}
disabled={activeSusi || !referenceButtonDisabled}
onClick={() => handleTypeButtonClick('SUSI')}
isSelected={selectedTypeButton === 'SUSI'}
>
수시
</PresetButton>
<PresetButton
disabled={activeJeongsi || referenceButtonDisabled}
disabled={activeJeongsi || !referenceButtonDisabled}
onClick={() => handleTypeButtonClick('JEONGSI')}
isSelected={selectedTypeButton === 'JEONGSI'}
>
정시
</PresetButton>
<PresetButton
disabled={activePyeonip || referenceButtonDisabled}
disabled={activePyeonip || !referenceButtonDisabled}
onClick={() => handleTypeButtonClick('PYEONIP')}
isSelected={selectedTypeButton === 'PYEONIP'}
>
Expand Down

0 comments on commit 9fd50e9

Please sign in to comment.