Skip to content

Commit

Permalink
minor edits and finalizing for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushithamsilva committed Jan 29, 2024
1 parent 5052352 commit b24acb8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
}

&.longText {
font-size: 3em;
font-size: 2.4em;
}

&.longlongText {
font-size: 2.4em;
font-size: 2em;
line-height: 0.9;
letter-spacing: 0.8;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ManagerProfile = () => {
const {
register,
handleSubmit,
formState: { errors, isSubmitting },
formState: { isSubmitting },
reset,
} = useForm();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const PlayerProfile = () => {
queryKey: ["data"],
});
async function fetchplayerProfileTableData(): Promise<MyTeam[]> {
console.log("Fetching Profile Table...");
// Renew access Token
await renewAccessToken();
const response = await fetch(`${BASE_URL}/player/myTeams`, {
Expand Down Expand Up @@ -100,6 +101,7 @@ const PlayerProfile = () => {
<MyTeamsTable
playerProfileTable={myTeamsData}
handleActions={refetchPlayers}
key={Date.now()}
/>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const TeamActions: React.FC<{ myTeam: MyTeam; handleActions: () => void }> = ({
};

const acceptTeam = async () => {
console.log("Sending request to accept team");
// renew access Token
renewAccessToken();

Expand All @@ -56,14 +57,9 @@ const TeamActions: React.FC<{ myTeam: MyTeam; handleActions: () => void }> = ({
},
}
);
const responseData = await response.json();
if (response.ok) {
// for debugging
handleActions();
console.log("response OK", responseData);
}
// const responseData = await response.json();
handleActions();
console.log("Hello", response);
return response;
};

return (
Expand All @@ -77,6 +73,7 @@ const TeamActions: React.FC<{ myTeam: MyTeam; handleActions: () => void }> = ({
Icon={FaCheck}
iconSizeEm={1.2}
disabled={verification === "verified"}
onClick={() => acceptTeam()}
>
Accept
</Btn>
Expand All @@ -85,9 +82,6 @@ const TeamActions: React.FC<{ myTeam: MyTeam; handleActions: () => void }> = ({
description={`You will be added to ${team_name}`}
cancel={
<Btn
onClick={() => {
acceptTeam();
}}
Icon={FaTimes}
buttonStyle="primary"
iconSizeEm={1}
Expand Down
2 changes: 1 addition & 1 deletion code/client/impax/src/services/mqttClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
setPlayerMap,
setSessionDetails,
updatePlayersImpactHistory,
checkBuddiesAvailability,
// checkBuddiesAvailability,
flushStates,
validateTimestampAndSetPlayerDetails,
} from "../states/updateAppStates";
Expand Down

0 comments on commit b24acb8

Please sign in to comment.