Skip to content

Commit

Permalink
✨ add new condition to ignore the agency block for the search (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
MailyLehoux authored May 27, 2022
1 parent 7ae012b commit c5c31c0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 30 deletions.
25 changes: 10 additions & 15 deletions i18n/en.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export default {
error: {
title404: "We are sorry, Page not found!",
text404: "The page you are looking for might have been removed had its name changed or is temporarily unavailable.",
button404: "Back to home"
text404:
"The page you are looking for might have been removed had its name changed or is temporarily unavailable.",
button404: "Back to home",
},
nav: {
mySkills: "My skills",
Expand Down Expand Up @@ -128,7 +129,7 @@ export default {
},
statistics: {
myTitleSection: "My statistics",
titleSection : "Statistics",
titleSection: "Statistics",
monthStreak: "Months Streak",
sentenceRankIncodming1: "Still ",
sentenceRankIncodming2: "xp to be promoted",
Expand All @@ -141,23 +142,17 @@ export default {
numberCompetencies: "Number of competences",
subobjectivesTitles: {
ProfileCompletion: "Category Profile Completion",
LanguageAndFrameworks:
"Category Langages and Frameworks",
LanguageAndFrameworks: "Category Langages and Frameworks",
Tools: "Category Tools",
Plateform: "Category Plateforms",
TechnicsAndMethod:
"Category Technics et methods",
TechnicsAndMethod: "Category Technics et methods",
},
subobjectivesLegends: {
ProfileCompletion: "Add your prefered topics and your agency",
LanguageAndFrameworks:
"Add skills in the Languages and Frameworks grid",
Tools:
"Add skills in the Tools grid",
Plateform:
"Add skills in the Platform grid",
TechnicsAndMethod:
"Add skills in the Technics and methods grid",
LanguageAndFrameworks: "Add skills in the Languages and Frameworks grid",
Tools: "Add skills in the Tools grid",
Plateform: "Add skills in the Platform grid",
TechnicsAndMethod: "Add skills in the Technics and methods grid",
Profile: "Complete profile informations",
},
},
Expand Down
21 changes: 9 additions & 12 deletions i18n/fr.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export default {
error: {
title404: "Nous sommes désolé, page invalide !",
text404: "L'URL de la page que vous avez demandé n'existe probablement pas ou est temporairement indisponible.",
button404: "Retour au menu"
text404:
"L'URL de la page que vous avez demandé n'existe probablement pas ou est temporairement indisponible.",
button404: "Retour au menu",
},
nav: {
mySkills: "Compétences",
Expand Down Expand Up @@ -143,23 +144,19 @@ export default {
numberCompetencies: "Compétences ajoutées",
subobjectivesTitles: {
ProfileCompletion: "Categorie Profile",
LanguageAndFrameworks:
"Catégorie Langages et Frameworks",
LanguageAndFrameworks: "Catégorie Langages et Frameworks",
Tools: "Catégorie Outils",
Plateform: "Catégorie Plateformes",
TechnicsAndMethod:
"Catégorie Techniques et méthodes",
TechnicsAndMethod: "Catégorie Techniques et méthodes",
},
subobjectivesLegends: {
ProfileCompletion: "Ajoute tes sujets préférés et ton agence",
LanguageAndFrameworks:
"Ajoute des compétences dans la grille Langages et Frameworks",
Tools:
"Ajoute des compétences dans la grille Outil",
Plateform:
"Ajoute des compétences dans la grille Plateformes",
"Ajoute des compétences dans la grille Langages et Frameworks",
Tools: "Ajoute des compétences dans la grille Outil",
Plateform: "Ajoute des compétences dans la grille Plateformes",
TechnicsAndMethod:
"Ajoute des compétences dans la grille Techniques et méthodes",
"Ajoute des compétences dans la grille Techniques et méthodes",
Profile: "Compléter son profil",
},
},
Expand Down
10 changes: 7 additions & 3 deletions src/pages/profile/[email]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ const Profile = () => {
<span>{infoUser?.name}</span>
</div>
</div>
<ViewAgency
agency={infoUser?.UserLatestAgency.agency}
></ViewAgency>
{infoUser?.UserLatestAgency?.agency ? (
<ViewAgency
agency={infoUser?.UserLatestAgency.agency}
></ViewAgency>
) : (
""
)}
<PreferedTopics
topics={topics}
refetch={null}
Expand Down

0 comments on commit c5c31c0

Please sign in to comment.