Skip to content

Commit 0d65eb7

Browse files
committed
fix: disable fire button if disabled
1 parent d665a21 commit 0d65eb7

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.27.2](https://github.com/Pjaijai/Referalah/compare/v1.21.1...v1.27.2) (2025-05-26)
6+
7+
### Bug Fixes
8+
9+
- diable fire if already fireed ([c163019](https://github.com/Pjaijai/Referalah/commit/c163019dd0c64993b742c147fe9bd8ee891be41a))
10+
511
### [1.27.1](https://github.com/Pjaijai/Referalah/compare/v1.27.0...v1.27.1) (2025-05-25)
612

713
## [1.27.0](https://github.com/Pjaijai/Referalah/compare/v1.21.1...v1.27.0) (2025-05-25)
814

9-
1015
### Features
1116

12-
* diplay company lcogo ([#442](https://github.com/Pjaijai/Referalah/issues/442)) ([503835f](https://github.com/Pjaijai/Referalah/commit/503835fe61a5bb488c53f8a6939d16a0af237a63))
17+
- diplay company lcogo ([#442](https://github.com/Pjaijai/Referalah/issues/442)) ([503835f](https://github.com/Pjaijai/Referalah/commit/503835fe61a5bb488c53f8a6939d16a0af237a63))
1318

1419
### [1.26.1](https://github.com/Pjaijai/Referalah/compare/v1.26.0...v1.26.1) (2025-05-22)
1520

16-
1721
### Bug Fixes
1822

19-
* fix unit test ([2b530ea](https://github.com/Pjaijai/Referalah/commit/2b530eaf7314cfd0f791aa3210df6752a62f0946))
23+
- fix unit test ([2b530ea](https://github.com/Pjaijai/Referalah/commit/2b530eaf7314cfd0f791aa3210df6752a62f0946))
2024

2125
## [1.26.0](https://github.com/Pjaijai/Referalah/compare/v1.21.1...v1.26.0) (2025-05-19)
2226

client/modules/job-journey/view/components/sections/content.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,13 @@ const ContentSection = ({ jobJourney, locationList }: IContentSectionProps) => {
215215
</section>
216216

217217
<section className="mt-3 flex justify-end gap-[10px]">
218-
<div
219-
className={cn(
220-
"flex flex-row items-center justify-center gap-[10px]",
221-
!isAlreadyFired && "cursor-pointer"
222-
)}
218+
<button
219+
className={cn("flex flex-row items-center justify-center gap-[10px]")}
223220
onClick={handleClick}
224221
role="button"
225222
aria-label={isAlreadyFired ? "Already liked" : "Like this job"}
226223
tabIndex={0}
224+
disabled={isAlreadyFired}
227225
onKeyDown={(e) => e.key === "Enter" && handleClick()}
228226
>
229227
<FireIcon isFire={isAlreadyFired} />
@@ -235,7 +233,7 @@ const ContentSection = ({ jobJourney, locationList }: IContentSectionProps) => {
235233
>
236234
{fireCount}
237235
</p>
238-
</div>
236+
</button>
239237
</section>
240238

241239
<section className="mt-[10px] rounded-md bg-slate-100">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Referalah",
33
"description": "An open source online platform for oversea Hong Kong People to connect each other",
4-
"version": "1.27.1",
4+
"version": "1.27.2",
55
"license": "Apache-2.0",
66
"scripts": {
77
"prepare": "husky install .husky",

0 commit comments

Comments
 (0)