fix: add button approve in detail audio

This commit is contained in:
Sabda Yagra 2025-10-14 15:20:18 +07:00
parent 0deb587a82
commit c4ff801d63
1 changed files with 4 additions and 4 deletions

View File

@ -817,10 +817,10 @@ export default function FormAudioDetail() {
</DialogContent> </DialogContent>
</Dialog> </Dialog>
</Card> </Card>
{Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( {/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
Number(detail?.uploadedById) == Number(userId) ? ( Number(detail?.uploadedById) == Number(userId) ? (
"" ""
) : ( ) : ( */}
<div className="flex flex-col gap-2 p-3"> <div className="flex flex-col gap-2 p-3">
<Button <Button
onClick={() => actionApproval("2")} onClick={() => actionApproval("2")}
@ -845,10 +845,10 @@ export default function FormAudioDetail() {
Reject Reject
</Button> </Button>
</div> </div>
) {/* )
) : ( ) : (
"" ""
)} )} */}
</div> </div>
</div> </div>
) : ( ) : (