This commit is contained in:
2024-06-12 16:03:56 +03:00
parent 2951a559bc
commit 72ec735e9d
2 changed files with 7 additions and 9 deletions

View File

@ -112,7 +112,7 @@
.anon-card { .anon-card {
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row wrap;
align-items: center; align-items: center;
animation: 0.3s ease-out 0s 1 cardPopup; animation: 0.3s ease-out 0s 1 cardPopup;
background: #001d39; background: #001d39;

View File

@ -87,14 +87,12 @@ const AnonUserCard = (props: {
</span> </span>
)} )}
{props.queueUser && {props.queueUser &&
clientId === props.queueUser.user.id && clientId === props.queueUser.user.id &&
props.queueUser.position === 0 && (props.queueUser.position === 0 && props.queue?.status === "active" ? (
props.queue?.status === "active" ? ( <Button onClick={() => passQueue()}>{tr("Pass")}</Button>
<Button onClick={() => passQueue()}>{tr("Pass")}</Button> ) : (
) : ( <Button onClick={() => passQueue()}>{tr("Leave")}</Button>
<Button onClick={() => passQueue()}>{tr("Leave")}</Button> ))}
)}
<p></p>
</div> </div>
); );
}; };