Merge pull request 'Fix error transitioning to the tentative status' (#83) from fix-transition-tentative-status into main
Some checks failed
Check usage of free licenses / build-static-assets (push) Successful in 4m22s
Build Nginx-based docker image / build-static-assets (push) Failing after 14m24s
Playwright Tests / test (push) Successful in 17m35s

Reviewed-on: #83
This commit is contained in:
bustikiller 2024-11-03 09:34:45 +00:00
commit 2fc13fbfa3

View File

@ -111,7 +111,7 @@ export default function guestsTable() {
{(guest.status === 'Invited' || guest.status === 'Tentative') && (
<>
<button data-guest-id={guest.id} onClick={handleConfirmGuest} className={classNames('green')}>Confirm</button>
{guest.status != 'Tentative' && <button data-guest-id={guest.id} onClick={handleDeclineGuest} className={classNames('yellow')}>Tentative</button>}
{guest.status != 'Tentative' && <button data-guest-id={guest.id} onClick={handleTentativeGuest} className={classNames('yellow')}>Tentative</button>}
<button data-guest-id={guest.id} onClick={handleDeclineGuest} className={classNames('red')}>Decline</button>
</>
)}