Skip to content

Commit

Permalink
fix: prevent page reload on email invite
Browse files Browse the repository at this point in the history
  • Loading branch information
ceelogre committed May 3, 2024
1 parent 9dd7cfe commit 11c06f0
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 38 deletions.
6 changes: 3 additions & 3 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@
"Phase deleted successfully": "Phase supprimée avec succès",
"Cohort deleted successfully": "Cohorte supprimée avec succès",
"Cohort Created successfully": "Cohorte créée avec succès",
"Phase Created successful": "Phase Création réussie",
"Phase Created successfully": "Phase Création réussie",
"Team successfully added": "Équipe ajoutée avec succès",
"Program deleted": "Programme supprimé",
"Cohort Updated successful": "Cohorte Mise à jour réussie",
"Phase Updated successful": "Phase Mise à jour réussie",
"Cohort Updated successfully": "Cohorte Mise à jour réussie",
"Phase Updated successfully": "Phase Mise à jour réussie",
"Doc introduction Coordinator": "Cette page fournit une documentation complète sur la manière d'évaluer efficacement les stagiaires au sein du système. En tant que coordinateur, votre capacité à fournir des évaluations précises et pertinentes joue un rôle crucial dans le suivi et l'évaluation de la progression des stagiaires. Ce guide vous guidera à travers les étapes nécessaires pour évaluer les stagiaires et vous permettra de tirer le meilleur parti des fonctionnalités de DevPulse",
"How to Rate Trainees": "Comment évaluer les stagiaires",
"Docs contents": "Table des matières",
Expand Down
6 changes: 3 additions & 3 deletions public/locales/kn/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@
"Phase deleted successfully": "Igihembwe cyasibwe neza",
"Cohort deleted successfully": "Icyiciro cyasibwe neza",
"Cohort created successfully": "Icyiciro yakozwe neza",
"Phase Created successful": "Igihembwe Cyakozwe neza",
"Phase Created successfully": "Igihembwe Cyakozwe neza",
"Team successfully added": "Ikipe yavuguruwe",
"Program deleted": "Porogaramu yasibwe",
"Cohort Updated successful": "Icyiciro Yavuguruwe neza",
"Phase Updated successful": "Igihembwe cyavuguruwe neza",
"Cohort Updated successfully": "Icyiciro Yavuguruwe neza",
"Phase Updated successfully": "Igihembwe cyavuguruwe neza",
"Doc introduction Coordinator": "Iyi paji itanga inyandiko zuzuye z'uburyo bwo gusuzuma neza abahugurwa muri sisitemu. Nk'umuhuzabikorwa, gutanga amanota y'ukuri kandi y'ubushishozi bigira uruhare runini mugukurikirana no gusuzuma iterambere ry'abahugurwa. Iyi nyandiko izagufasha gusobanukirwa intambwe zifashishwa mugusuzuma abahugurwa,no gusobanukirwa neza imikorere ya DevPulse ",
"How to Rate Trainees": "Uko wasuzuma abahugurwa",
"Docs contents": "Ibirimo",
Expand Down
3 changes: 0 additions & 3 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ function Sidebar({ style, toggle }: { style: string; toggle: () => void }) {
<SideNavLink onClick={toggle} to="/sessions" name="Sessions">
<BookOpenIcon className="w-5" />
</SideNavLink>
<SideNavLink onClick={toggle} to="/ratings" name="Ratings">
<ClipboardListIcon className="w-5" />
</SideNavLink>
<SideNavLink onClick={toggle} name="Attendance" to="/attendance">
<ClipboardCheckIcon className="w-5 " />
</SideNavLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -148,6 +149,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-expanded={false}
aria-haspopup={true}
Expand Down Expand Up @@ -233,6 +235,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -250,6 +253,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-expanded={false}
aria-haspopup={true}
Expand Down Expand Up @@ -457,7 +461,7 @@ Array [
name="date"
readOnly={true}
type="text"
value="2024-03-12"
value="2024-03-26"
/>
</div>
<div
Expand Down Expand Up @@ -529,6 +533,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1dsw3my-control"
Expand All @@ -549,6 +554,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-4-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -635,6 +641,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -655,6 +662,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-5-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -741,6 +749,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -761,6 +770,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-6-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -1104,6 +1114,7 @@ Array [
className="w-full justify-center flex mx-auto flex-row items-center overflow-x-auto"
>
<button
aria-label="left-arrow"
className="page mx-2 text-white rounded-circle appearance-none font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand All @@ -1128,6 +1139,7 @@ Array [
</button>
<button
aria-label="right-arrow"
className="page mx-2 text-white rounded-circle font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/admin-dashBoard/CoordinatorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function CoordinatorsPage() {
const orgToken = localStorage.getItem('orgToken');
const { loading, error, data } = useQuery(GET_COORDINATORS, {
variables: {
orgToken: orgToken,
orgToken,
},
pollInterval: 3000, // Refresh every 3 seconds
});
Expand Down
4 changes: 2 additions & 2 deletions src/containers/admin-dashBoard/TtlsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export default function TtlsPage() {
>
{traineeDetails && traineeDetails.profile
? traineeDetails.profile.name
: 'Un availabe'}
: 'Unavailable'}
</h2>

<div
Expand All @@ -451,7 +451,7 @@ export default function TtlsPage() {
<p>
<i>
{' '}
{traineeDetails ? traineeDetails.email : 'Un availabe'}
{traineeDetails ? traineeDetails.email : 'Unavailable'}
</i>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -78,6 +79,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-2-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -163,6 +165,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -183,6 +186,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-3-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -266,6 +270,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -286,6 +291,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-4-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -468,6 +474,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -488,6 +495,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-5-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -573,6 +581,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -593,6 +602,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-6-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -676,6 +686,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -696,6 +707,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-7-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -1015,6 +1027,7 @@ Array [
className="w-full justify-center flex mx-auto flex-row items-center overflow-x-auto"
>
<button
aria-label="left-arrow"
className="page mx-2 text-white rounded-circle appearance-none font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand All @@ -1039,6 +1052,7 @@ Array [
</button>
<button
aria-label="right-arrow"
className="page mx-2 text-white rounded-circle font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ Array [
className="w-full justify-center flex mx-auto flex-row items-center overflow-x-auto"
>
<button
aria-label="left-arrow"
className="page mx-2 text-white rounded-circle appearance-none font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand All @@ -424,6 +425,7 @@ Array [
</button>
<button
aria-label="right-arrow"
className="page mx-2 text-white rounded-circle font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -81,6 +82,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-2-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -250,6 +252,7 @@ Array [
aria-live="polite"
aria-relevant="additions text"
className="css-1f43avz-a11yText-A11yText"
role="log"
/>
<div
className="my-react-select__control css-1an72ab-control"
Expand All @@ -270,6 +273,7 @@ Array [
data-value=""
>
<input
aria-activedescendant=""
aria-autocomplete="list"
aria-describedby="react-select-3-placeholder"
aria-expanded={false}
Expand Down Expand Up @@ -666,6 +670,7 @@ Array [
className="w-full justify-center flex mx-auto flex-row items-center overflow-x-auto"
>
<button
aria-label="left-arrow"
className="page mx-2 text-white rounded-circle appearance-none font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand All @@ -690,6 +695,7 @@ Array [
</button>
<button
aria-label="right-arrow"
className="page mx-2 text-white rounded-circle font-bold flex items-center justify-center bg-primary h-[30px] w-[60px] cursor-pointer"
disabled={true}
onClick={[Function]}
Expand Down
Loading

0 comments on commit 11c06f0

Please sign in to comment.