Skip to content

Commit c5c31c0

Browse files
authored
✨ add new condition to ignore the agency block for the search (#151)
1 parent 7ae012b commit c5c31c0

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

i18n/en.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
export default {
22
error: {
33
title404: "We are sorry, Page not found!",
4-
text404: "The page you are looking for might have been removed had its name changed or is temporarily unavailable.",
5-
button404: "Back to home"
4+
text404:
5+
"The page you are looking for might have been removed had its name changed or is temporarily unavailable.",
6+
button404: "Back to home",
67
},
78
nav: {
89
mySkills: "My skills",
@@ -128,7 +129,7 @@ export default {
128129
},
129130
statistics: {
130131
myTitleSection: "My statistics",
131-
titleSection : "Statistics",
132+
titleSection: "Statistics",
132133
monthStreak: "Months Streak",
133134
sentenceRankIncodming1: "Still ",
134135
sentenceRankIncodming2: "xp to be promoted",
@@ -141,23 +142,17 @@ export default {
141142
numberCompetencies: "Number of competences",
142143
subobjectivesTitles: {
143144
ProfileCompletion: "Category Profile Completion",
144-
LanguageAndFrameworks:
145-
"Category Langages and Frameworks",
145+
LanguageAndFrameworks: "Category Langages and Frameworks",
146146
Tools: "Category Tools",
147147
Plateform: "Category Plateforms",
148-
TechnicsAndMethod:
149-
"Category Technics et methods",
148+
TechnicsAndMethod: "Category Technics et methods",
150149
},
151150
subobjectivesLegends: {
152151
ProfileCompletion: "Add your prefered topics and your agency",
153-
LanguageAndFrameworks:
154-
"Add skills in the Languages and Frameworks grid",
155-
Tools:
156-
"Add skills in the Tools grid",
157-
Plateform:
158-
"Add skills in the Platform grid",
159-
TechnicsAndMethod:
160-
"Add skills in the Technics and methods grid",
152+
LanguageAndFrameworks: "Add skills in the Languages and Frameworks grid",
153+
Tools: "Add skills in the Tools grid",
154+
Plateform: "Add skills in the Platform grid",
155+
TechnicsAndMethod: "Add skills in the Technics and methods grid",
161156
Profile: "Complete profile informations",
162157
},
163158
},

i18n/fr.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
export default {
22
error: {
33
title404: "Nous sommes désolé, page invalide !",
4-
text404: "L'URL de la page que vous avez demandé n'existe probablement pas ou est temporairement indisponible.",
5-
button404: "Retour au menu"
4+
text404:
5+
"L'URL de la page que vous avez demandé n'existe probablement pas ou est temporairement indisponible.",
6+
button404: "Retour au menu",
67
},
78
nav: {
89
mySkills: "Compétences",
@@ -143,23 +144,19 @@ export default {
143144
numberCompetencies: "Compétences ajoutées",
144145
subobjectivesTitles: {
145146
ProfileCompletion: "Categorie Profile",
146-
LanguageAndFrameworks:
147-
"Catégorie Langages et Frameworks",
147+
LanguageAndFrameworks: "Catégorie Langages et Frameworks",
148148
Tools: "Catégorie Outils",
149149
Plateform: "Catégorie Plateformes",
150-
TechnicsAndMethod:
151-
"Catégorie Techniques et méthodes",
150+
TechnicsAndMethod: "Catégorie Techniques et méthodes",
152151
},
153152
subobjectivesLegends: {
154153
ProfileCompletion: "Ajoute tes sujets préférés et ton agence",
155154
LanguageAndFrameworks:
156-
"Ajoute des compétences dans la grille Langages et Frameworks",
157-
Tools:
158-
"Ajoute des compétences dans la grille Outil",
159-
Plateform:
160-
"Ajoute des compétences dans la grille Plateformes",
155+
"Ajoute des compétences dans la grille Langages et Frameworks",
156+
Tools: "Ajoute des compétences dans la grille Outil",
157+
Plateform: "Ajoute des compétences dans la grille Plateformes",
161158
TechnicsAndMethod:
162-
"Ajoute des compétences dans la grille Techniques et méthodes",
159+
"Ajoute des compétences dans la grille Techniques et méthodes",
163160
Profile: "Compléter son profil",
164161
},
165162
},

src/pages/profile/[email]/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ const Profile = () => {
5959
<span>{infoUser?.name}</span>
6060
</div>
6161
</div>
62-
<ViewAgency
63-
agency={infoUser?.UserLatestAgency.agency}
64-
></ViewAgency>
62+
{infoUser?.UserLatestAgency?.agency ? (
63+
<ViewAgency
64+
agency={infoUser?.UserLatestAgency.agency}
65+
></ViewAgency>
66+
) : (
67+
""
68+
)}
6569
<PreferedTopics
6670
topics={topics}
6771
refetch={null}

0 commit comments

Comments
 (0)