Skip to content

Commit

Permalink
SNS-321: Missing subdomains in SNS Manager (#37)
Browse files Browse the repository at this point in the history
* Fix: Subdomains not showing up when only subdomains in wallet

* Fix: Empty domain in profile header when wallet only holds subs

* chore: lingui

---------

Co-authored-by: DR497 <[email protected]>
  • Loading branch information
akashrdev and dr497 authored Feb 8, 2024
1 parent d9cbc82 commit c72fdff
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 54 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ xnft-bundle.zip

# macOS
.DS_Store

#env
.env
.env.*

# Android
*.apk
Expand Down
16 changes: 8 additions & 8 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ msgstr ""
msgid "Clear all"
msgstr ""

#: src/screens/Profile/index.tsx:290
#: src/screens/Profile/index.tsx:295
msgid "Clear search"
msgstr ""

Expand Down Expand Up @@ -258,7 +258,7 @@ msgid "Domain name tokenization (wrapping), involves converting a domain name in
msgstr ""

#: src/App.tsx:142
#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "Domains"
msgstr ""

Expand Down Expand Up @@ -428,15 +428,15 @@ msgstr ""
msgid "Learn more in our docs"
msgstr ""

#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "My domains"
msgstr ""

#: src/screens/Profile/index.tsx:298
#~ msgid "My sub domains"
#~ msgstr ""

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "My subdomains"
msgstr ""

Expand All @@ -457,7 +457,7 @@ msgid "No changes to save"
msgstr ""

#: src/components/SearchModal.tsx:74
#: src/screens/Profile/index.tsx:280
#: src/screens/Profile/index.tsx:285
msgid "No domain found"
msgstr ""

Expand Down Expand Up @@ -525,7 +525,7 @@ msgstr ""
#~ msgid "Profile completed: {percentage}%"
#~ msgstr ""

#: src/screens/Profile/index.tsx:205
#: src/screens/Profile/index.tsx:210
msgid "Profile completion: {percentage}%"
msgstr ""

Expand Down Expand Up @@ -584,7 +584,7 @@ msgid "Search domains"
msgstr ""

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:239
#: src/screens/Profile/index.tsx:244
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr ""
Expand Down Expand Up @@ -653,7 +653,7 @@ msgstr ""
msgid "Storage:"
msgstr ""

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "Sub domains"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/messages.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/locales/es/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ msgstr "Cambiar foto de perfil"
msgid "Clear all"
msgstr "Limpiar todo"

#: src/screens/Profile/index.tsx:290
#: src/screens/Profile/index.tsx:295
msgid "Clear search"
msgstr "Limpiar búsqueda"

Expand Down Expand Up @@ -216,7 +216,7 @@ msgid "Domain name tokenization (wrapping), involves converting a domain name in
msgstr "La tokenización de un nombre de dominio (envuelto) implica convertir un nombre de dominio en un NFT. Para revelar el nombre de dominio original, el token puede ser redimido (desenvuelto)."

#: src/App.tsx:142
#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "Domains"
msgstr "Dominios"

Expand Down Expand Up @@ -349,15 +349,15 @@ msgstr "IPFS"
msgid "Learn more in our docs"
msgstr "Aprende más en nuestra documentación"

#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "My domains"
msgstr "Mis dominios"

#: src/screens/Profile/index.tsx:298
#~ msgid "My sub domains"
#~ msgstr "Mis subdominios"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "My subdomains"
msgstr ""

Expand All @@ -378,7 +378,7 @@ msgid "No changes to save"
msgstr "No hay cambios que guardar"

#: src/components/SearchModal.tsx:74
#: src/screens/Profile/index.tsx:280
#: src/screens/Profile/index.tsx:285
msgid "No domain found"
msgstr "No se encontró ningún dominio"

Expand Down Expand Up @@ -434,7 +434,7 @@ msgstr "Política de privacidad"
msgid "Profile"
msgstr "Perfil"

#: src/screens/Profile/index.tsx:205
#: src/screens/Profile/index.tsx:210
msgid "Profile completion: {percentage}%"
msgstr "Finalización del perfil: {percentage}%"

Expand Down Expand Up @@ -488,7 +488,7 @@ msgid "Search domains"
msgstr "Buscar dominios"

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:239
#: src/screens/Profile/index.tsx:244
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "Buscar un dominio"
Expand Down Expand Up @@ -527,7 +527,7 @@ msgstr "Tamaño de Almacenamiento"
msgid "Storage:"
msgstr "Almacenamiento:"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "Sub domains"
msgstr "Subdominios"

Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/messages.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ msgstr "Changez votre photo de profil"
msgid "Clear all"
msgstr "Tout effacer"

#: src/screens/Profile/index.tsx:290
#: src/screens/Profile/index.tsx:295
msgid "Clear search"
msgstr "Effacez la recherche"

Expand Down Expand Up @@ -212,7 +212,7 @@ msgid "Domain name tokenization (wrapping), involves converting a domain name in
msgstr "La tokenisation (enveloppement) de noms de domaine consiste à convertir un nom de domaine en NFT."

#: src/App.tsx:142
#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "Domains"
msgstr "Domaines"

Expand Down Expand Up @@ -352,15 +352,15 @@ msgstr "IPFS"
msgid "Learn more in our docs"
msgstr "En savoir plus dans nos docs"

#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "My domains"
msgstr "Mes domaines"

#: src/screens/Profile/index.tsx:298
#~ msgid "My sub domains"
#~ msgstr "Mes sous-domaines"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "My subdomains"
msgstr ""

Expand All @@ -386,7 +386,7 @@ msgid "No changes to save"
msgstr "Aucuns changements à sauvegarder"

#: src/components/SearchModal.tsx:74
#: src/screens/Profile/index.tsx:280
#: src/screens/Profile/index.tsx:285
msgid "No domain found"
msgstr "Aucun domaine trouvé"

Expand Down Expand Up @@ -448,7 +448,7 @@ msgstr "Politique de confidentialité"
msgid "Profile"
msgstr "Profil"

#: src/screens/Profile/index.tsx:205
#: src/screens/Profile/index.tsx:210
msgid "Profile completion: {percentage}%"
msgstr "Avancement du profil : {pourcentage} %"

Expand Down Expand Up @@ -502,7 +502,7 @@ msgid "Search domains"
msgstr "Recherchez des domains"

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:239
#: src/screens/Profile/index.tsx:244
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "Recherchez un domaine"
Expand Down Expand Up @@ -541,7 +541,7 @@ msgstr "Taille de stockage"
msgid "Storage:"
msgstr "Stockage:"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "Sub domains"
msgstr "Sous-domaines"

Expand Down
16 changes: 8 additions & 8 deletions src/locales/kr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ msgstr "프로필 사진 변경"
msgid "Clear all"
msgstr "모두 지우기"

#: src/screens/Profile/index.tsx:290
#: src/screens/Profile/index.tsx:295
msgid "Clear search"
msgstr "검색 지우기"

Expand Down Expand Up @@ -260,7 +260,7 @@ msgid "Domain name tokenization (wrapping), involves converting a domain name in
msgstr "도메인 이름 토큰화(래핑)는 도메인 이름을 NFT로 변환하는 것을 뜻 합니다. 원래 도메인 이름을 드러내려면 토큰을 인출(언래핑)할 수 있습니다."

#: src/App.tsx:142
#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "Domains"
msgstr "도메인"

Expand Down Expand Up @@ -432,15 +432,15 @@ msgstr "IPFS"
msgid "Learn more in our docs"
msgstr "문서로 더 알아보세요"

#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "My domains"
msgstr "나의 도메인"

#: src/screens/Profile/index.tsx:298
#~ msgid "My sub domains"
#~ msgstr "나의 서브도메인"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "My subdomains"
msgstr "나의 서브도메인"

Expand All @@ -461,7 +461,7 @@ msgid "No changes to save"
msgstr "저장할 변경 사항이 없습니다"

#: src/components/SearchModal.tsx:74
#: src/screens/Profile/index.tsx:280
#: src/screens/Profile/index.tsx:285
msgid "No domain found"
msgstr "도메인을 찾을 수 없습니다"

Expand Down Expand Up @@ -533,7 +533,7 @@ msgstr "프로필"
#~ msgid "Profile completed: {percentage}%"
#~ msgstr "프로필 완료율: {percentage}%"

#: src/screens/Profile/index.tsx:205
#: src/screens/Profile/index.tsx:210
msgid "Profile completion: {percentage}%"
msgstr "프로필 완성도: {percentage}%"

Expand Down Expand Up @@ -592,7 +592,7 @@ msgid "Search domains"
msgstr "도메인 검색"

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:239
#: src/screens/Profile/index.tsx:244
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "도메인을 검색하기"
Expand Down Expand Up @@ -661,7 +661,7 @@ msgstr "저장 용량"
msgid "Storage:"
msgstr "저장 용량:"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "Sub domains"
msgstr "서브도메인"

Expand Down
2 changes: 1 addition & 1 deletion src/locales/tr/messages.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/locales/tr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ msgstr "Profil resmini değiştir"
msgid "Clear all"
msgstr "Tümünü temizle"

#: src/screens/Profile/index.tsx:290
#: src/screens/Profile/index.tsx:295
msgid "Clear search"
msgstr "Aramaları temizle"

Expand Down Expand Up @@ -216,7 +216,7 @@ msgid "Domain name tokenization (wrapping), involves converting a domain name in
msgstr "Domain ismini tokenize edilmesi (wrapping), domain isminin NFT'ye dönüşümüdür. Asıl domain isminin tekrardan elde edilmesi için tokenin geri katlanması (unwrapping) gereklidir. "

#: src/App.tsx:142
#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "Domains"
msgstr "Domainler"

Expand Down Expand Up @@ -349,15 +349,15 @@ msgstr "IPFS"
msgid "Learn more in our docs"
msgstr "Dokümanlarımızı okuyarak daha fazla bilgi edinin"

#: src/screens/Profile/index.tsx:232
#: src/screens/Profile/index.tsx:237
msgid "My domains"
msgstr "Domainlerim"

#: src/screens/Profile/index.tsx:298
#~ msgid "My sub domains"
#~ msgstr ""

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "My subdomains"
msgstr ""

Expand All @@ -378,7 +378,7 @@ msgid "No changes to save"
msgstr "Kaydedilecek değişiklik yok"

#: src/components/SearchModal.tsx:74
#: src/screens/Profile/index.tsx:280
#: src/screens/Profile/index.tsx:285
msgid "No domain found"
msgstr "Domain bulunamadı"

Expand Down Expand Up @@ -434,7 +434,7 @@ msgstr ""
msgid "Profile"
msgstr "Profil"

#: src/screens/Profile/index.tsx:205
#: src/screens/Profile/index.tsx:210
msgid "Profile completion: {percentage}%"
msgstr "Profil tamamlama: {percentage}%"

Expand Down Expand Up @@ -488,7 +488,7 @@ msgid "Search domains"
msgstr "Domainler ara"

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:239
#: src/screens/Profile/index.tsx:244
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "Domain için arama yap"
Expand Down Expand Up @@ -527,7 +527,7 @@ msgstr "Depo Hacmi"
msgid "Storage:"
msgstr "Depo"

#: src/screens/Profile/index.tsx:302
#: src/screens/Profile/index.tsx:307
msgid "Sub domains"
msgstr ""

Expand Down
Loading

0 comments on commit c72fdff

Please sign in to comment.