Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdomain display bug #33

Merged
merged 4 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@bonfida/sns-emitter": "0.1.7",
"@bonfida/sns-react": "2.1.0",
"@bonfida/sns-records": "0.0.1-alpha.8",
"@bonfida/spl-name-service": "2.2.0",
"@bonfida/spl-name-service": "2.3.2",
"@coral-xyz/common-public": "0.2.0-latest.3375",
"@expo-google-fonts/dev": "*",
"@expo/html-elements": "0.5.1",
Expand Down
10 changes: 5 additions & 5 deletions src/components/ProfileBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import tw from "@src/utils/tailwind";
import { abbreviate } from "@src/utils/abbreviate";
import { useWallet } from "@src/hooks/useWallet";
import { useFavoriteDomain } from "@src/hooks/useFavoriteDomain";
import { usePicRecord } from "@src/hooks/useRecords";
import { useProfilePic } from "@bonfida/sns-react";

interface ProfileBlockProps {
children?: ReactNode;
owner: string;
domain: string;
picRecord: ReturnType<typeof usePicRecord>;
picRecord: ReturnType<typeof useProfilePic>;
}

export const ProfileBlock = ({
Expand Down Expand Up @@ -52,9 +52,9 @@ export const ProfileBlock = ({
>
<Image
source={
picRecord.uri
picRecord.result
? {
uri: picRecord.uri,
uri: picRecord.result,
}
: require("@assets/default-pic.png")
}
Expand All @@ -64,7 +64,7 @@ export const ProfileBlock = ({
<TouchableOpacity
onPress={() =>
openModal("EditPicture", {
currentPic: picRecord.uri,
currentPic: picRecord.result,
domain: domain,
setAsFav: !favorite.result?.reverse,
refresh: picRecord.execute,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

20 changes: 14 additions & 6 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:244
#: src/screens/Profile/index.tsx:269
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:139
#: src/screens/Profile/index.tsx:186
#: src/screens/Profile/index.tsx:211
msgid "Domains"
msgstr ""

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

#: src/screens/Profile/index.tsx:186
#: src/screens/Profile/index.tsx:211
msgid "My domains"
msgstr ""

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

#: src/screens/Profile.tsx:248
#~ msgid "My subdomains"
#~ msgstr ""
Expand All @@ -453,7 +457,7 @@ msgid "No changes to save"
msgstr ""

#: src/components/SearchModal.tsx:75
#: src/screens/Profile/index.tsx:234
#: src/screens/Profile/index.tsx:259
msgid "No domain found"
msgstr ""

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

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

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

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:193
#: src/screens/Profile/index.tsx:218
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr ""
Expand Down Expand Up @@ -649,6 +653,10 @@ msgstr ""
msgid "Storage:"
msgstr ""

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

#: src/components/DeleteModal.tsx:56
msgid "subdomain {domain}.sol successfully deleted!"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/messages.js

Large diffs are not rendered by default.

20 changes: 14 additions & 6 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:244
#: src/screens/Profile/index.tsx:269
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:139
#: src/screens/Profile/index.tsx:186
#: src/screens/Profile/index.tsx:211
msgid "Domains"
msgstr "Dominios"

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

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

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

#: src/components/TransferModal.tsx:80
msgid "New {domain}.sol owner"
msgstr "Nuevo propietario de {domain}.sol"
Expand All @@ -370,7 +374,7 @@ msgid "No changes to save"
msgstr "No hay cambios que guardar"

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

Expand Down Expand Up @@ -426,7 +430,7 @@ msgstr ""
msgid "Profile"
msgstr "Perfil"

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

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

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:193
#: src/screens/Profile/index.tsx:218
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "Buscar un dominio"
Expand Down Expand Up @@ -519,6 +523,10 @@ msgstr "Tamaño de Almacenamiento"
msgid "Storage:"
msgstr "Almacenamiento:"

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

#: src/components/DeleteModal.tsx:56
msgid "subdomain {domain}.sol successfully deleted!"
msgstr "¡Subdominio {domain}.sol eliminado exitosamente!"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/messages.js

Large diffs are not rendered by default.

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

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

Expand Down Expand Up @@ -224,7 +224,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:139
#: src/screens/Profile/index.tsx:186
#: src/screens/Profile/index.tsx:211
msgid "Domains"
msgstr "Domaines"

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

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

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

#: src/components/TransferModal.tsx:80
msgid "New {domain}.sol owner"
msgstr ""
Expand All @@ -390,7 +394,7 @@ msgid "No changes to save"
msgstr "Aucuns changements à sauvegarder"

#: src/components/SearchModal.tsx:75
#: src/screens/Profile/index.tsx:234
#: src/screens/Profile/index.tsx:259
msgid "No domain found"
msgstr "Aucun domaine trouvé"

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

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

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

#: src/screens/HomeScreen.tsx:95
#: src/screens/Profile/index.tsx:193
#: src/screens/Profile/index.tsx:218
#: src/screens/SearchResult.tsx:77
msgid "Search for a domain"
msgstr "Recherchez un domaine"
Expand Down Expand Up @@ -545,6 +549,10 @@ msgstr "Taille de stockage"
msgid "Storage:"
msgstr "Stockage:"

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

#: src/components/DeleteModal.tsx:56
msgid "subdomain {domain}.sol successfully deleted!"
msgstr "Le sous-domaine {domain}.sol a été supprimé avec succès !"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/kr/messages.js

Large diffs are not rendered by default.

20 changes: 14 additions & 6 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:244
#: src/screens/Profile/index.tsx:269
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:139
#: src/screens/Profile/index.tsx:186
#: src/screens/Profile/index.tsx:211
msgid "Domains"
msgstr "도메인"

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

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

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

#: src/screens/Profile.tsx:248
#~ msgid "My subdomains"
#~ msgstr "나의 서브도메인"
Expand All @@ -457,7 +461,7 @@ msgid "No changes to save"
msgstr "저장할 변경 사항이 없습니다"

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

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

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

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

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

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

#: src/components/DeleteModal.tsx:56
msgid "subdomain {domain}.sol successfully deleted!"
msgstr "서브도메인 {domain}.sol이(가) 성공적으로 삭제되었습니다!"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/tr/messages.js

Large diffs are not rendered by default.

Loading
Loading