@ludo.ninja/components 1.9.4 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CreationCard/{CardHead.jsx → CardHead.js} +15 -22
- package/dist/components/CreationCard/{index.jsx → index.js} +24 -19
- package/dist/components/addWalletsRedirectPage/{index.jsx → index.js} +11 -18
- package/dist/components/banner/{index.jsx → index.js} +17 -23
- package/dist/components/base/Meta/index.js +60 -0
- package/dist/components/base/NoSSR/{index.jsx → index.js} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.jsx → index.js} +5 -9
- package/dist/components/deleteDialog/{index.jsx → index.js} +14 -19
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.jsx → index.js} +1 -3
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/filters/applyResetBtns/{index.jsx → index.js} +5 -8
- package/dist/components/filters/galleriesFiltersForm/{index.jsx → index.js} +5 -14
- package/dist/components/filters/{index.jsx → index.js} +27 -35
- package/dist/components/filters/mobileFilters/{index.jsx → index.js} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.jsx → index.js} +4 -11
- package/dist/components/forms/form/{index.jsx → index.js} +35 -45
- package/dist/components/forms/formsNavigation/{index.jsx → index.js} +6 -14
- package/dist/components/forms/formsTemplate/{index.jsx → index.js} +3 -4
- package/dist/components/gallery/add/addAssetToGallery/{index.jsx → index.js} +2 -4
- package/dist/components/gallery/add/addCreationToGallery/{index.jsx → index.js} +7 -8
- package/dist/components/gradientLabel/{index.jsx → index.js} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.jsx → index.js} +2 -3
- package/dist/components/headers/components/headerUserPic/{index.jsx → index.js} +2 -3
- package/dist/components/headers/header/{index.jsx → index.js} +6 -6
- package/dist/components/headers/headerSearch/{index.jsx → index.js} +7 -7
- package/dist/components/headers/headerSimple/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.jsx → index.js} +11 -22
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.jsx → index.js} +3 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.jsx → index.js} +6 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.jsx → index.js} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.jsx → index.js} +4 -9
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.jsx → index.js} +1 -3
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +17 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.jsx → index.js} +6 -9
- package/dist/components/linkTabs/{index.jsx → index.js} +1 -3
- package/dist/components/linkTabs/linkTab/{index.jsx → index.js} +4 -6
- package/dist/components/myWallets/{index.jsx → index.js} +4 -5
- package/dist/components/myWallets/myWalletItem/{index.jsx → index.js} +22 -29
- package/dist/components/navigation/{index.jsx → index.js} +11 -29
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.jsx → MultiversXAudit.js} +10 -15
- package/dist/components/profile/{ProfileTabs.jsx → ProfileTabs.js} +20 -22
- package/dist/components/profile/aboutText/{index.jsx → index.js} +16 -25
- package/dist/components/profile/addToGalleryBtns/{index.jsx → index.js} +6 -9
- package/dist/components/profile/followersSocial/followers/{index.jsx → index.js} +3 -4
- package/dist/components/profile/followersSocial/{index.jsx → index.js} +6 -7
- package/dist/components/profile/followersSocial/social/{index.jsx → index.js} +7 -9
- package/dist/components/profile/info/{index.jsx → index.js} +8 -11
- package/dist/components/profile/interests/{index.jsx → index.js} +14 -29
- package/dist/components/profile/pageHead/index.js +51 -0
- package/dist/components/profile/profileSkeleton/{index.jsx → index.js} +9 -15
- package/dist/components/profile/profileUserCards/{index.jsx → index.js} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.jsx → index.js} +21 -26
- package/dist/components/profile/rank/{index.jsx → index.js} +7 -15
- package/dist/components/profile/stats/{index.jsx → index.js} +4 -12
- package/dist/components/profile/wallets/{index.jsx → index.js} +20 -28
- package/dist/components/profile/wrapper/{index.jsx → index.js} +4 -12
- package/dist/components/registrationPage/registrationSelectBox/{index.jsx → index.js} +2 -3
- package/dist/components/registrationPage/registrationSelection/{index.jsx → index.js} +15 -29
- package/dist/components/rewards/FAQ/{index.jsx → index.js} +12 -20
- package/dist/components/rewards/clarifications/{index.jsx → index.js} +15 -25
- package/dist/components/rewards/logoBottom/{index.jsx → index.js} +5 -6
- package/dist/components/rewards/prograssBar/{index.jsx → index.js} +3 -5
- package/dist/components/rewards/seasonBanner/{index.jsx → index.js} +2 -3
- package/dist/components/rewards/taskExpTab/{index.jsx → index.js} +19 -31
- package/dist/components/rewards/tasksGrid/{index.jsx → index.js} +3 -6
- package/dist/components/rewards/userExp/{index.jsx → index.js} +23 -29
- package/dist/components/search/{SearchInputContainer.jsx → SearchInputContainer.js} +96 -98
- package/dist/components/search/{index.jsx → index.js} +10 -12
- package/dist/components/search/searchCategories/{index.jsx → index.js} +6 -10
- package/dist/components/search/searchCloseMoreButtons/{index.jsx → index.js} +12 -15
- package/dist/components/search/searchResultCaption/{index.jsx → index.js} +3 -6
- package/dist/components/search/searchSelectsGalleries/{index.jsx → index.js} +14 -30
- package/dist/components/search/searchSelectsSets/{index.jsx → index.js} +14 -27
- package/dist/components/search/searchSimpleInput/{index.jsx → index.js} +9 -11
- package/dist/components/search/searchSuggestions/index.js +117 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.jsx → index.js} +3 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.jsx → index.js} +6 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.jsx → index.js} +11 -18
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.jsx → index.js} +7 -14
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.jsx → index.js} +5 -3
- package/dist/components/shareDialog/index.js +73 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.jsx → index.js} +4 -6
- package/dist/components/sidebar/{data.jsx → data.js} +8 -8
- package/dist/components/sidebar/{index.jsx → index.js} +16 -23
- package/dist/components/sidebar/{initializer.jsx → initializer.js} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.jsx → index.js} +6 -9
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.jsx → index.js} +3 -4
- package/dist/components/socialButtons/{data.jsx → data.js} +6 -6
- package/dist/components/socialButtons/icons/discord.js +7 -0
- package/dist/components/socialButtons/icons/facebook.js +8 -0
- package/dist/components/socialButtons/icons/instagram.js +9 -0
- package/dist/components/socialButtons/icons/medium.js +7 -0
- package/dist/components/socialButtons/icons/telegram.js +7 -0
- package/dist/components/socialButtons/icons/twitter.js +7 -0
- package/dist/components/socialButtons/{index.jsx → index.js} +5 -8
- package/dist/components/tabs/icons/bell.js +9 -0
- package/dist/components/tabs/icons/profile.js +9 -0
- package/dist/components/tabs/icons/secure.js +8 -0
- package/dist/components/tabs/{index.jsx → index.js} +10 -13
- package/dist/components/toTopBtn/{index.jsx → index.js} +5 -7
- package/dist/dto/AssetEntity/views/AssetAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.jsx → index.js} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/Media/Audio/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Image/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Object/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Other/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Video/{index.jsx → index.js} +3 -3
- package/dist/fonts/{FontsInitializeLayout.jsx → FontsInitializeLayout.js} +1 -4
- package/dist/hooks/searchFiltersConnector/{index.jsx → index.js} +33 -35
- package/dist/hooks/useToGalleryAsset/{index.jsx → index.js} +1 -1
- package/dist/layouts/{GlobalLayout.jsx → GlobalLayout.js} +15 -16
- package/dist/layouts/base/LWithRegularHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSearchHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSimpleHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithoutHeader/{index.jsx → index.js} +3 -4
- package/dist/layouts/custom/accountLayout/{index.jsx → index.js} +6 -11
- package/dist/layouts/custom/formsLayout/{index.jsx → index.js} +3 -5
- package/dist/layouts/custom/mainLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/searchLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/simpleLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/pageTransitionLayout.js +24 -0
- package/dist/modules/notifications/{CreatorNotifications.jsx → CreatorNotifications.js} +1 -3
- package/dist/modules/user/profileData/{profileDataInitialization.jsx → profileDataInitialization.js} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.jsx → VirtuosoPageBuilder.js} +18 -23
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.jsx → VirtuosoToTopBtn.js} +1 -1
- package/dist/pages/index.js +16 -0
- package/dist/system/ActiveLink/{index.jsx → index.js} +14 -5
- package/dist/system/Alert/{index.jsx → index.js} +1 -1
- package/dist/system/BasicOverlay/{index.jsx → index.js} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.jsx → index.js} +4 -6
- package/dist/system/Cards/CardContent/CardCategory/{index.jsx → index.js} +3 -5
- package/dist/system/Cards/CardContent/CardLikes/{index.jsx → index.js} +7 -11
- package/dist/system/Cards/CardContent/CardShowMore/{index.jsx → index.js} +5 -8
- package/dist/system/Cards/CardContent/{index.jsx → index.js} +16 -30
- package/dist/system/Cards/CardHeadIcons/{index.jsx → index.js} +15 -22
- package/dist/system/Cards/CardMedia/CardAudio/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardImage/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardVideo/{index.jsx → index.js} +9 -11
- package/dist/system/Cards/CardRank/{index.jsx → index.js} +6 -12
- package/dist/system/Cards/CardsGrid/{index.jsx → index.js} +8 -13
- package/dist/system/Cards/HideLink/index.js +27 -0
- package/dist/system/Cards/MultiMediaCard/{index.jsx → index.js} +11 -17
- package/dist/system/Cards/RegularCard/{index.jsx → index.js} +11 -17
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.jsx → index.js} +3 -6
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.jsx → index.js} +3 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.jsx → index.js} +9 -15
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.jsx → index.js} +4 -8
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.jsx → index.js} +2 -3
- package/dist/system/CardsHolderWithSkeleton/{index.jsx → index.js} +3 -6
- package/dist/system/DropDown/{DropDown.test.jsx → DropDown.test.js} +7 -11
- package/dist/system/DropDown/{index.jsx → index.js} +10 -13
- package/dist/system/Forms/Checkbox/{Checkbox.test.jsx → Checkbox.test.js} +13 -2
- package/dist/system/Forms/Checkbox/{index.jsx → index.js} +23 -15
- package/dist/system/Forms/DatePicker/{index.jsx → index.js} +6 -7
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.jsx → ErrorLabel.test.js} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.jsx → index.js} +1 -1
- package/dist/system/Forms/Input/{Input.test.jsx → Input.test.js} +2 -2
- package/dist/system/Forms/Input/{index.jsx → index.js} +15 -5
- package/dist/system/Forms/RadioInput/{index.jsx → index.js} +16 -6
- package/dist/system/Forms/Selects/DesktopSelect/{index.jsx → index.js} +21 -11
- package/dist/system/Forms/Selects/MobileSelect/{index.jsx → index.js} +1 -3
- package/dist/system/Forms/TextArea/{index.jsx → index.js} +15 -5
- package/dist/system/Img/ExternalImage/{index.jsx → index.js} +12 -1
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.jsx → ImageInterceptor.test.js} +10 -14
- package/dist/system/Img/ImageInterceptor/{index.jsx → index.js} +4 -5
- package/dist/system/Img/Profilepic/{index.jsx → index.js} +8 -9
- package/dist/system/Img/Userpic/{UserPic.test.jsx → UserPic.test.js} +6 -8
- package/dist/system/Img/Userpic/{index.jsx → index.js} +10 -13
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.jsx → ExperienceLabel.test.js} +16 -6
- package/dist/system/Labels/ExperienceLabel/{index.jsx → index.js} +6 -5
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.jsx → InviteLabel.test.js} +15 -5
- package/dist/system/Labels/InviteLabel/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/Modal/{Modal.test.jsx → Modal.test.js} +2 -2
- package/dist/system/Modals/Modal/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.jsx → CreatorModalSidebarPortal.js} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.jsx → ModalSidebar.test.js} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.jsx → ModalSidebarPortal.js} +4 -6
- package/dist/system/Modals/ModalSidebar/{index.jsx → index.js} +3 -4
- package/dist/system/Overlay/{Overlay.test.jsx → Overlay.test.js} +2 -3
- package/dist/system/Overlay/{index.jsx → index.js} +2 -3
- package/dist/system/{ShareIconResize.jsx → ShareIconResize.js} +5 -6
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.jsx → TabNavLink.test.js} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.jsx → index.js} +1 -3
- package/dist/system/Tabs/TabsNav/{TabsNav.test.jsx → TabsNav.test.js} +4 -4
- package/dist/system/Tabs/TabsNav/{index.jsx → index.js} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.jsx → TabsPanel.test.js} +8 -12
- package/dist/system/Tabs/TabsPanel/{index.jsx → index.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.jsx → index.js} +4 -7
- package/package.json +1 -1
- package/dist/components/base/Meta/index.jsx +0 -64
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +0 -18
- package/dist/components/profile/pageHead/index.jsx +0 -52
- package/dist/components/search/searchSuggestions/index.jsx +0 -124
- package/dist/components/shareDialog/index.jsx +0 -91
- package/dist/components/socialButtons/icons/discord.jsx +0 -8
- package/dist/components/socialButtons/icons/facebook.jsx +0 -9
- package/dist/components/socialButtons/icons/instagram.jsx +0 -10
- package/dist/components/socialButtons/icons/medium.jsx +0 -8
- package/dist/components/socialButtons/icons/telegram.jsx +0 -8
- package/dist/components/socialButtons/icons/twitter.jsx +0 -8
- package/dist/components/tabs/icons/bell.jsx +0 -10
- package/dist/components/tabs/icons/profile.jsx +0 -10
- package/dist/components/tabs/icons/secure.jsx +0 -9
- package/dist/layouts/pageTransitionLayout.jsx +0 -27
- package/dist/pages/index.jsx +0 -18
- package/dist/system/Cards/HideLink/index.jsx +0 -22
- /package/dist/components/headers/components/MobileToggle/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.jsx → index.js} +0 -0
- /package/dist/components/profile/jsonLd/{index.jsx → index.js} +0 -0
- /package/dist/components/registrationPage/{index.jsx → index.js} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/ItemType/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/Media/{index.jsx → index.js} +0 -0
- /package/dist/hooks/apollo/{index.jsx → index.js} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.jsx → index.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.jsx → useFindCollectionsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.jsx → useFindCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.jsx → useGetCollectionInfoAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.jsx → useGetCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.jsx → useGetCreationsAndLikesByType.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.jsx → useGetMixedLikesFavoriteList.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.jsx → useGetTableLikes.js} +0 -0
- /package/dist/modules/notifications/{index.jsx → index.js} +0 -0
- /package/dist/modules/user/{store.jsx → store.js} +0 -0
- /package/dist/styles/animations/{index.jsx → index.js} +0 -0
- /package/dist/styles/{globalStyles.jsx → globalStyles.js} +0 -0
- /package/dist/styles/mixins/{boxShadow.jsx → boxShadow.js} +0 -0
- /package/dist/styles/mixins/{boxTransform.jsx → boxTransform.js} +0 -0
- /package/dist/styles/mixins/{z-indexes.jsx → z-indexes.js} +0 -0
- /package/dist/styles/typography/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/MainButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Flex/{index.jsx → index.js} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.jsx → index.js} +0 -0
- /package/dist/system/PageLoader/{index.jsx → index.js} +0 -0
- /package/dist/system/Palete/{index.jsx → index.js} +0 -0
- /package/dist/system/Text/{index.jsx → index.js} +0 -0
- /package/dist/utils/extractItemIds/{index.jsx → index.js} +0 -0
- /package/dist/utils/imageProportionsSize/{index.jsx → index.js} +0 -0
- /package/dist/utils/ui/{index.jsx → index.js} +0 -0
|
@@ -24,16 +24,13 @@ var UsedCodes = function (_a) {
|
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
var renderUsedInviteCodes = sortedInvitesOnDate.map(function (inviteCode) {
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
</inviteCode_1.default>);
|
|
27
|
+
return (react_1.default.createElement(inviteCode_1.default, { key: inviteCode.inviteCode, inviteCode: inviteCode },
|
|
28
|
+
react_1.default.createElement(inviteCodeDate_1.default, { value: new Date(inviteCode.usedAt) })));
|
|
30
29
|
});
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<components_1.InviteCodes isLoading={isLoading}>{renderUsedInviteCodes}</components_1.InviteCodes>
|
|
36
|
-
</>);
|
|
30
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
|
+
react_1.default.createElement(StyledUsedCodesCaption, null,
|
|
32
|
+
react_1.default.createElement(components_1.InviteCodeCaption, { isNeedRender: sortedInvitesOnDate.length, text: 'Activated invites', isLoading: isLoading })),
|
|
33
|
+
react_1.default.createElement(components_1.InviteCodes, { isLoading: isLoading }, renderUsedInviteCodes)));
|
|
37
34
|
};
|
|
38
35
|
// Export
|
|
39
36
|
exports.default = UsedCodes;
|
|
@@ -16,9 +16,7 @@ var StyledLinkTabs = styled_components_1.default.div(templateObject_1 || (templa
|
|
|
16
16
|
// Component
|
|
17
17
|
var LinkTabs = function (_a) {
|
|
18
18
|
var isUnderlined = _a.isUnderlined, children = _a.children, style = _a.style;
|
|
19
|
-
return (
|
|
20
|
-
{children}
|
|
21
|
-
</StyledLinkTabs>);
|
|
19
|
+
return (react_1.default.createElement(StyledLinkTabs, { isUnderlined: isUnderlined, style: style }, children));
|
|
22
20
|
};
|
|
23
21
|
// Export
|
|
24
22
|
exports.default = LinkTabs;
|
|
@@ -18,12 +18,10 @@ var StyledLinkTab = styled_components_1.default.span(templateObject_1 || (templa
|
|
|
18
18
|
var LinkTabs = function (_a) {
|
|
19
19
|
var link = _a.link, isActive = _a.isActive, countItems = _a.countItems, text = _a.text;
|
|
20
20
|
var deviceType = (0, utils_1.useWindowDimensions)().deviceType;
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</StyledLinkTab>
|
|
26
|
-
</link_1.default>);
|
|
21
|
+
return (react_1.default.createElement(link_1.default, { href: link },
|
|
22
|
+
react_1.default.createElement(StyledLinkTab, { isActive: isActive, isMobile: deviceType === 'isMobile' },
|
|
23
|
+
countItems !== null && (react_1.default.createElement("strong", { className: 'count' }, countItems)),
|
|
24
|
+
text)));
|
|
27
25
|
};
|
|
28
26
|
// Export
|
|
29
27
|
exports.default = LinkTabs;
|
|
@@ -22,13 +22,12 @@ var MyWallets = function () {
|
|
|
22
22
|
}).userWallets;
|
|
23
23
|
var renderWallets = function () {
|
|
24
24
|
return userWallets === null || userWallets === void 0 ? void 0 : userWallets.map(function (userWallet, iter) {
|
|
25
|
-
return (
|
|
25
|
+
return (react_1.default.createElement(myWalletItem_1.default, { key: iter, userId: getUser === null || getUser === void 0 ? void 0 : getUser.userId, blockchain: new core_1.BlockChainEntity(userWallet.blockchain || ''), address: userWallet.address || null, chainId: userWallet.chainId || '', isMainWallet: userWallet.mainWallet }));
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</>);
|
|
28
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
29
|
+
react_1.default.createElement(_system_1.H2, null, 'My Wallets'),
|
|
30
|
+
react_1.default.createElement(StyledMyWallets, null, renderWallets())));
|
|
32
31
|
};
|
|
33
32
|
exports.default = MyWallets;
|
|
34
33
|
var templateObject_1;
|
|
@@ -110,35 +110,28 @@ var MyWalletItem = function (_a) {
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}); };
|
|
113
|
-
return (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
});
|
|
136
|
-
}}>
|
|
137
|
-
<p>Delete</p>
|
|
138
|
-
</StyledDropDownItem>)}
|
|
139
|
-
</StyledDropDown>
|
|
140
|
-
</StyledMyWalletItem>
|
|
141
|
-
</utils_1.ClickAwayListener>);
|
|
113
|
+
return (react_1.default.createElement(utils_1.ClickAwayListener, { onClickAway: handleClick.close },
|
|
114
|
+
react_1.default.createElement(StyledMyWalletItem, { isOpen: isOpen, isMainWallet: isMainWallet, onClick: handleClick.toggle },
|
|
115
|
+
react_1.default.createElement(StyledArrowIcon, { isOpen: isOpen, width: 24, height: 24 }),
|
|
116
|
+
react_1.default.createElement(StyledImg, { width: 36, height: 36, src: blockchain.getBlockChainIconRegular({
|
|
117
|
+
domain: (0, env_1.getStaticENVDomain)(),
|
|
118
|
+
}), alt: blockchain.getBlockChainPublicLabel() }),
|
|
119
|
+
react_1.default.createElement(StyledContent, null,
|
|
120
|
+
react_1.default.createElement("span", null, (0, utils_2.shortenedText)(address)),
|
|
121
|
+
react_1.default.createElement("p", null, blockchain.getBlockChainPublicLabel())),
|
|
122
|
+
react_1.default.createElement(StyledDropDown, { isOpen: isOpen },
|
|
123
|
+
react_1.default.createElement(StyledDropDownItem, { onClick: function () { return handleCopy(address || ''); } },
|
|
124
|
+
react_1.default.createElement("p", null, "Copy")),
|
|
125
|
+
!isMainWallet && (react_1.default.createElement(StyledDropDownItem, null,
|
|
126
|
+
react_1.default.createElement("p", null, "Set as main address"))),
|
|
127
|
+
!isMainWallet && (react_1.default.createElement(StyledDropDownItem, { onClick: function () {
|
|
128
|
+
return removeWallet({
|
|
129
|
+
blockchain: blockchain.getBlockChainPrivateLabel(),
|
|
130
|
+
address: address || '',
|
|
131
|
+
chainId: chainId,
|
|
132
|
+
});
|
|
133
|
+
} },
|
|
134
|
+
react_1.default.createElement("p", null, "Delete")))))));
|
|
142
135
|
};
|
|
143
136
|
exports.default = MyWalletItem;
|
|
144
137
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -59,35 +59,17 @@ var Navigation = function () {
|
|
|
59
59
|
var _a = (0, react_1.useState)(false), isOpen = _a[0], setIsOpen = _a[1];
|
|
60
60
|
var router = (0, router_1.useRouter)();
|
|
61
61
|
var activeTab = router.pathname.split('/').at(-2);
|
|
62
|
-
return (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<li className={"".concat(activeTab === NavigationTabs.settings ? 'activeTab' : '', " ")}>
|
|
74
|
-
<settings_svg_1.default className={'icon'}/>
|
|
75
|
-
<settings_active_svg_1.default className={'activeIcon'}/>
|
|
76
|
-
<span>Settings</span>
|
|
77
|
-
</li>
|
|
78
|
-
{/*<li className={`${activeTab === NavigationTabs.notifications ? 'activeTab' : ''} `}>*/}
|
|
79
|
-
{/* <NotificationIcon className={'icon'}/>*/}
|
|
80
|
-
{/* <NotificationActiveIcon className={'activeIcon'}/>*/}
|
|
81
|
-
{/* <span>Notifications</span>*/}
|
|
82
|
-
{/*</li>*/}
|
|
83
|
-
{/*<li className={`${activeTab === NavigationTabs.privacy ? 'activeTab' : ''} `}>*/}
|
|
84
|
-
{/* <PrivacyIcon className={'icon'}/>*/}
|
|
85
|
-
{/* <PrivacyActiveIcon className={'activeIcon'}/>*/}
|
|
86
|
-
{/* <span>Privacy</span>*/}
|
|
87
|
-
{/*</li>*/}
|
|
88
|
-
</List>
|
|
89
|
-
</Wrapper>
|
|
90
|
-
</>);
|
|
62
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
63
|
+
react_1.default.createElement(StyledFlex, { isOpen: isOpen }, isOpen ? (react_1.default.createElement(back_svg_1.default, { onClick: function () { return setIsOpen(false); } })) : (react_1.default.createElement(burger_menu_svg_1.default, { onClick: function () { return setIsOpen(true); } }))),
|
|
64
|
+
react_1.default.createElement(Wrapper, { className: "mobile_menu ".concat(isOpen ? 'show' : 'hide') },
|
|
65
|
+
react_1.default.createElement(StyledH1, null,
|
|
66
|
+
isOpen && react_1.default.createElement(back_svg_1.default, { onClick: function () { return setIsOpen(false); } }),
|
|
67
|
+
"Settings"),
|
|
68
|
+
react_1.default.createElement(List, null,
|
|
69
|
+
react_1.default.createElement("li", { className: "".concat(activeTab === NavigationTabs.settings ? 'activeTab' : '', " ") },
|
|
70
|
+
react_1.default.createElement(settings_svg_1.default, { className: 'icon' }),
|
|
71
|
+
react_1.default.createElement(settings_active_svg_1.default, { className: 'activeIcon' }),
|
|
72
|
+
react_1.default.createElement("span", null, "Settings"))))));
|
|
91
73
|
};
|
|
92
74
|
exports.default = Navigation;
|
|
93
75
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -89,19 +89,14 @@ var AuditUI = function (_a) {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
}, []);
|
|
92
|
-
return (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}}/>
|
|
101
|
-
<span>{label}</span>
|
|
102
|
-
</div>); })}
|
|
103
|
-
</div>
|
|
104
|
-
</SWrapper>);
|
|
92
|
+
return (React.createElement(SWrapper, null,
|
|
93
|
+
React.createElement("div", { className: "canvas" },
|
|
94
|
+
React.createElement("canvas", { ref: canvasRef })),
|
|
95
|
+
React.createElement("div", { className: "labels" }, labels.map(function (label, index) { return (React.createElement("div", { key: index },
|
|
96
|
+
React.createElement("div", { className: "circle", style: {
|
|
97
|
+
backgroundColor: backgroundColors[index],
|
|
98
|
+
} }),
|
|
99
|
+
React.createElement("span", null, label))); }))));
|
|
105
100
|
};
|
|
106
101
|
var Audit = function (_a) {
|
|
107
102
|
var _b;
|
|
@@ -125,14 +120,14 @@ var Audit = function (_a) {
|
|
|
125
120
|
return null;
|
|
126
121
|
}
|
|
127
122
|
var interests = data.fetchMultiversxAudit.interests;
|
|
128
|
-
return interests &&
|
|
123
|
+
return interests && React.createElement(AuditUI, { interests: interests });
|
|
129
124
|
};
|
|
130
125
|
var MultiversXAudit = function () {
|
|
131
126
|
var authMultiversXWallet = (0, nookies_1.parseCookies)().authMultiversXWallet;
|
|
132
127
|
if (!authMultiversXWallet) {
|
|
133
128
|
return null;
|
|
134
129
|
}
|
|
135
|
-
return
|
|
130
|
+
return React.createElement(Audit, { wallet: authMultiversXWallet });
|
|
136
131
|
// const testWallet =
|
|
137
132
|
// 'erd138hdrk39plv3afyv0x3fcsknfu9hkdj9xu7u0mpdqmjpvt5avc7s72unc8';
|
|
138
133
|
// return <Audit wallet={testWallet} />;
|
|
@@ -21,28 +21,26 @@ var env_1 = require("@/utils/env");
|
|
|
21
21
|
var ProfileTabs = function (_a) {
|
|
22
22
|
var _b = _a.totalResults, totalResults = _b === void 0 ? null : _b, profileId = _a.profileId, style = _a.style, isMobile = _a.isMobile;
|
|
23
23
|
var router = (0, router_1.useRouter)();
|
|
24
|
-
return (
|
|
25
|
-
|
|
24
|
+
return (react_1.default.createElement(linkTabs_1.default, { isUnderlined: true, style: style }, __spreadArray([
|
|
25
|
+
{
|
|
26
|
+
link: "/profile/".concat(profileId, "/nfts"),
|
|
27
|
+
text: 'NFTs',
|
|
28
|
+
}
|
|
29
|
+
], ((0, env_1.isProd)({ ENV: isProdENV })
|
|
30
|
+
? []
|
|
31
|
+
: [
|
|
32
|
+
{
|
|
33
|
+
link: "/profile/".concat(profileId, "/galleries"),
|
|
34
|
+
text: 'Galleries',
|
|
35
|
+
},
|
|
26
36
|
{
|
|
27
|
-
link: "/profile/".concat(profileId, "/
|
|
28
|
-
text: '
|
|
29
|
-
}
|
|
30
|
-
], ((
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
text: 'Galleries',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
link: "/profile/".concat(profileId, "/favorite-lists"),
|
|
39
|
-
text: isMobile ? 'Fav.Lists' : 'Favorite Lists',
|
|
40
|
-
},
|
|
41
|
-
]), true).map(function (_a) {
|
|
42
|
-
var link = _a.link, text = _a.text;
|
|
43
|
-
var isActive = router.asPath.includes(link);
|
|
44
|
-
return (<linkTab_1.default key={link} link={link} isActive={isActive} countItems={isActive ? totalResults : null} text={text}/>);
|
|
45
|
-
})}
|
|
46
|
-
</linkTabs_1.default>);
|
|
37
|
+
link: "/profile/".concat(profileId, "/favorite-lists"),
|
|
38
|
+
text: isMobile ? 'Fav.Lists' : 'Favorite Lists',
|
|
39
|
+
},
|
|
40
|
+
]), true).map(function (_a) {
|
|
41
|
+
var link = _a.link, text = _a.text;
|
|
42
|
+
var isActive = router.asPath.includes(link);
|
|
43
|
+
return (react_1.default.createElement(linkTab_1.default, { key: link, link: link, isActive: isActive, countItems: isActive ? totalResults : null, text: text }));
|
|
44
|
+
})));
|
|
47
45
|
};
|
|
48
46
|
exports.ProfileTabs = ProfileTabs;
|
|
@@ -84,31 +84,22 @@ var ProfileAboutText = function (_a) {
|
|
|
84
84
|
router.push("/account/profile/settings/".concat(profileId));
|
|
85
85
|
};
|
|
86
86
|
var windowDimensions = (0, utils_2.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
87
|
-
return (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
{profileId === (getUser === null || getUser === void 0 ? void 0 : getUser.userId) && (<system_1.MainButton text={'Edit profile'} variant="outline" onClick={handleRedirectToProfileSettings}/>)}
|
|
104
|
-
</div>)}
|
|
105
|
-
<div className="shareBtn">
|
|
106
|
-
<system_1.IconButton onClick={function () {
|
|
107
|
-
return openModal(<shareDialog_1.default link={url} onHide={closeModal}/>);
|
|
108
|
-
}} icon={<share_svg_1.default style={(0, utils_2.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 })}/>}/>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</StyledProfileAboutText>);
|
|
87
|
+
return (react_1.default.createElement(StyledProfileAboutText, null,
|
|
88
|
+
isUserNameShouldShow && react_1.default.createElement("h3", { className: 'name' }, username),
|
|
89
|
+
userWallet && (react_1.default.createElement(utils_2.CopyButton, { value: userWallet },
|
|
90
|
+
react_1.default.createElement("p", { className: "wallet" }, (0, utils_1.shortenedText)(userWallet)))),
|
|
91
|
+
react_1.default.createElement(followersSocial_1.ProfileFollowersSocial, { followings: followings, followers: followers, social: social }),
|
|
92
|
+
about && (react_1.default.createElement(react_hyphen_1.default, null,
|
|
93
|
+
react_1.default.createElement("p", { className: "descr ".concat(isNeedReadMore && 'isActive') }, about))),
|
|
94
|
+
isNeedReadMore && (react_1.default.createElement("span", { className: 'readMore', onClick: handleReadMore }, "Read more")),
|
|
95
|
+
react_1.default.createElement("div", { className: "shareEdit" },
|
|
96
|
+
isSignedIn && (react_1.default.createElement("div", { className: "editBtnOrShare" },
|
|
97
|
+
profileId !== (getUser === null || getUser === void 0 ? void 0 : getUser.userId) && (react_1.default.createElement(system_1.MainButton, { text: isFollowing ? 'Unfollow' : 'FOLLOW', variant: isFollowing ? 'secondary' : 'primaryM', onClick: onContentChanged })),
|
|
98
|
+
profileId === (getUser === null || getUser === void 0 ? void 0 : getUser.userId) && (react_1.default.createElement(system_1.MainButton, { text: 'Edit profile', variant: "outline", onClick: handleRedirectToProfileSettings })))),
|
|
99
|
+
react_1.default.createElement("div", { className: "shareBtn" },
|
|
100
|
+
react_1.default.createElement(system_1.IconButton, { onClick: function () {
|
|
101
|
+
return openModal(react_1.default.createElement(shareDialog_1.default, { link: url, onHide: closeModal }));
|
|
102
|
+
}, icon: react_1.default.createElement(share_svg_1.default, { style: (0, utils_2.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 }) }) })))));
|
|
112
103
|
};
|
|
113
104
|
exports.ProfileAboutText = ProfileAboutText;
|
|
114
105
|
var templateObject_1;
|
|
@@ -20,7 +20,7 @@ var StyledProfileAddToGalleryBtns = styled_components_1.default.div(templateObje
|
|
|
20
20
|
// Component
|
|
21
21
|
var PlusIconResize = function () {
|
|
22
22
|
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
23
|
-
return (
|
|
23
|
+
return (react_1.default.createElement(plus_svg_1.default, { className: 'icon', style: (0, utils_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 }) }));
|
|
24
24
|
};
|
|
25
25
|
var ProfileAddToGalleryBtns = function (_a) {
|
|
26
26
|
var addMethod = _a.addMethod;
|
|
@@ -31,14 +31,11 @@ var ProfileAddToGalleryBtns = function (_a) {
|
|
|
31
31
|
}); }), resetCreationsInGallery = _b.resetCreationsInGallery, creationsToGallery = _b.creationsToGallery, isActiveGalleryMode = _b.isActiveGalleryMode;
|
|
32
32
|
if (!isActiveGalleryMode)
|
|
33
33
|
return null;
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<system_1.MainButton onClick={resetCreationsInGallery} variant="float" text={'Cancel'}/>
|
|
40
|
-
</div>
|
|
41
|
-
</StyledProfileAddToGalleryBtns>);
|
|
34
|
+
return (react_1.default.createElement(StyledProfileAddToGalleryBtns, null,
|
|
35
|
+
react_1.default.createElement("div", { className: "addToGalleryBtns" },
|
|
36
|
+
react_1.default.createElement(system_1.IconWithButton, { variant: 'regular', text: 'Add to Gallery', onClick: addMethod, disabled: !creationsToGallery.length, isDisableSkeleton: true },
|
|
37
|
+
react_1.default.createElement(PlusIconResize, null)),
|
|
38
|
+
react_1.default.createElement(system_1.MainButton, { onClick: resetCreationsInGallery, variant: "float", text: 'Cancel' }))));
|
|
42
39
|
};
|
|
43
40
|
// Export
|
|
44
41
|
exports.default = ProfileAddToGalleryBtns;
|
|
@@ -20,10 +20,9 @@ var StyledProfileFollowersCaption = (0, styled_components_1.default)(_system_1.H
|
|
|
20
20
|
// Components
|
|
21
21
|
var ProfileFollowers = function (_a) {
|
|
22
22
|
var counter = _a.counter, text = _a.text;
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</StyledProfileFollowers>);
|
|
23
|
+
return (react_1.default.createElement(StyledProfileFollowers, null,
|
|
24
|
+
react_1.default.createElement(StyledProfileFollowersCounter, null, counter),
|
|
25
|
+
react_1.default.createElement(StyledProfileFollowersCaption, null, text)));
|
|
27
26
|
};
|
|
28
27
|
exports.ProfileFollowers = ProfileFollowers;
|
|
29
28
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -17,13 +17,12 @@ var StyledProfileFollowersSocial = styled_components_1.default.div(templateObjec
|
|
|
17
17
|
// Components
|
|
18
18
|
var ProfileFollowersSocial = function (_a) {
|
|
19
19
|
var followers = _a.followers, followings = _a.followings, social = _a.social;
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
null
|
|
23
|
-
|
|
24
|
-
null
|
|
25
|
-
|
|
26
|
-
</StyledProfileFollowersSocial>);
|
|
20
|
+
return (react_1.default.createElement(StyledProfileFollowersSocial, null,
|
|
21
|
+
(followers && (react_1.default.createElement(followers_1.ProfileFollowers, { text: 'FOLLOWERS', counter: followers }))) ||
|
|
22
|
+
null,
|
|
23
|
+
(followings && (react_1.default.createElement(followers_1.ProfileFollowers, { text: 'FOLLOWING', counter: followings }))) ||
|
|
24
|
+
null,
|
|
25
|
+
react_1.default.createElement(social_1.ProfileSocial, { social: social })));
|
|
27
26
|
};
|
|
28
27
|
exports.ProfileFollowersSocial = ProfileFollowersSocial;
|
|
29
28
|
var templateObject_1;
|
|
@@ -23,20 +23,18 @@ var ProfileSocial = function (_a) {
|
|
|
23
23
|
: "https://".concat(icon)
|
|
24
24
|
: icon;
|
|
25
25
|
if (icon) {
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
</StyledProfileSocialItem>);
|
|
26
|
+
return (react_1.default.createElement(StyledProfileSocialItem, { className: 'profileStatsSocialItem', target: '_blank', rel: "noreferrer", href: websiteLink },
|
|
27
|
+
react_1.default.createElement(image_1.default, { src: "/socials/".concat([type], ".svg"), width: 20, title: type, height: 20, alt: icon })));
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
var isSocialNullish = Object.values(social).every(function (value) { return value === null; });
|
|
32
31
|
if (!isSocialNullish && !(social === null || social === void 0 ? void 0 : social.website))
|
|
33
32
|
return null;
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</>);
|
|
33
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
34
|
+
socialIcon(social === null || social === void 0 ? void 0 : social.facebook, 'facebook'),
|
|
35
|
+
socialIcon(social === null || social === void 0 ? void 0 : social.instagram, 'instagram'),
|
|
36
|
+
socialIcon(social === null || social === void 0 ? void 0 : social.website, 'website'),
|
|
37
|
+
socialIcon(social === null || social === void 0 ? void 0 : social.twitter, 'twitter')));
|
|
40
38
|
};
|
|
41
39
|
exports.ProfileSocial = ProfileSocial;
|
|
42
40
|
var templateObject_1;
|
|
@@ -30,17 +30,14 @@ var ProfileInfo = function (_a) {
|
|
|
30
30
|
return 120;
|
|
31
31
|
};
|
|
32
32
|
var size = getProfileImgSize();
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</div>
|
|
42
|
-
<profile_1.ProfileStats rank={profile.getUserRank()}/>
|
|
43
|
-
</StyledProfileInfo>);
|
|
33
|
+
return (react_1.default.createElement(StyledProfileInfo, null,
|
|
34
|
+
react_1.default.createElement("div", { className: 'profileImgWithDescription' },
|
|
35
|
+
react_1.default.createElement("div", { className: 'profileImage' },
|
|
36
|
+
react_1.default.createElement(_system_1.ProfilePic, { userPicSrc: profile.getUserPic({
|
|
37
|
+
mediaDomain: (0, env_1.getMediaENVDomain)(),
|
|
38
|
+
}), size: size })),
|
|
39
|
+
react_1.default.createElement(profile_1.ProfileAboutText, { username: profile.getName(), about: profile.getAbout(), following: profile === null || profile === void 0 ? void 0 : profile.getIsFollowing(), followings: profile.getFollowings(), followers: profile.getFollowers(), wallets: profile.getWallets(), social: [] })),
|
|
40
|
+
react_1.default.createElement(profile_1.ProfileStats, { rank: profile.getUserRank() })));
|
|
44
41
|
};
|
|
45
42
|
exports.ProfileInfo = ProfileInfo;
|
|
46
43
|
var templateObject_1;
|
|
@@ -25,47 +25,32 @@ var ProfileInterests = function () {
|
|
|
25
25
|
var _a = (0, useFetchUserInterests_1.default)(), userInterests = _a.userInterests, loading = _a.loading, error = _a.error;
|
|
26
26
|
var renderDiagrammaProgressItem = function () {
|
|
27
27
|
return userInterests === null || userInterests === void 0 ? void 0 : userInterests.map(function (interest, iter) {
|
|
28
|
-
return (
|
|
28
|
+
return (react_1.default.createElement("span", { key: interest.imageUrl, className: 'diagrammaProgressItem', style: {
|
|
29
29
|
backgroundColor: data_1.default[iter].colorLabel,
|
|
30
30
|
width: "".concat(interest.percents, "%"),
|
|
31
|
-
}}
|
|
31
|
+
} }));
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
var renderDiagrammaTableItem = function () {
|
|
35
35
|
return userInterests === null || userInterests === void 0 ? void 0 : userInterests.map(function (interest, iter) {
|
|
36
36
|
var mediaQuery = window.matchMedia('(min-width: 768px) and (max-width: 1199px)');
|
|
37
37
|
var shouldTruncate = mediaQuery.matches && interest.name && interest.name.length > 11;
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<p className={'diagrammaTableItemEndValue'}>{"".concat(interest.percents, "%")}</p>
|
|
46
|
-
</span>);
|
|
38
|
+
return (react_1.default.createElement("span", { key: interest.imageUrl, className: "diagrammaTableItem" },
|
|
39
|
+
react_1.default.createElement("p", { className: 'diagrammaTableItemStartValue' },
|
|
40
|
+
react_1.default.createElement("strong", { style: { backgroundColor: data_1.default[iter].colorLabel } }),
|
|
41
|
+
shouldTruncate
|
|
42
|
+
? interest.name.substring(0, 11) + '...'
|
|
43
|
+
: interest.name),
|
|
44
|
+
react_1.default.createElement("p", { className: 'diagrammaTableItemEndValue' }, "".concat(interest.percents, "%"))));
|
|
47
45
|
});
|
|
48
46
|
};
|
|
49
47
|
if (loading || error || !(userInterests === null || userInterests === void 0 ? void 0 : userInterests.length))
|
|
50
48
|
return null;
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
<div className={"diagrammaTable"}>
|
|
58
|
-
{renderDiagrammaTableItem()}
|
|
59
|
-
{/*<span className="diagrammaTableItem">*/}
|
|
60
|
-
{/* <p className={'diagrammaTableItemStartValue'}>*/}
|
|
61
|
-
{/* <strong style={{ backgroundColor: InactiveButtonColor }}></strong>*/}
|
|
62
|
-
{/* CreationOther*/}
|
|
63
|
-
{/* </p>*/}
|
|
64
|
-
{/* <p className={'diagrammaTableItemEndValue'}>9%</p>*/}
|
|
65
|
-
{/*</span>*/}
|
|
66
|
-
</div>
|
|
67
|
-
</Palete_1.default>
|
|
68
|
-
</StyledProfileInterests>);
|
|
49
|
+
return (react_1.default.createElement(StyledProfileInterests, null,
|
|
50
|
+
react_1.default.createElement(Palete_1.default, null,
|
|
51
|
+
react_1.default.createElement("span", { className: "caption" }, "Interests"),
|
|
52
|
+
react_1.default.createElement("div", { className: 'diagrammaProgress' }, renderDiagrammaProgressItem()),
|
|
53
|
+
react_1.default.createElement("div", { className: "diagrammaTable" }, renderDiagrammaTableItem()))));
|
|
69
54
|
};
|
|
70
55
|
exports.ProfileInterests = ProfileInterests;
|
|
71
56
|
var templateObject_1;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProfilePageHead = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var head_1 = __importDefault(require("next/head"));
|
|
9
|
+
// Private
|
|
10
|
+
var seo = function (title, about, url, image) {
|
|
11
|
+
return {
|
|
12
|
+
title: title,
|
|
13
|
+
about: about,
|
|
14
|
+
openGraph: {
|
|
15
|
+
type: 'website',
|
|
16
|
+
locale: 'en_US',
|
|
17
|
+
url: url,
|
|
18
|
+
title: title,
|
|
19
|
+
about: about,
|
|
20
|
+
image: image,
|
|
21
|
+
site_name: process.env.NEXT_PUBLIC_ENV_DOMAIN,
|
|
22
|
+
imageWidth: '512',
|
|
23
|
+
imageHeight: '512',
|
|
24
|
+
},
|
|
25
|
+
twitter: {
|
|
26
|
+
handle: '@ludo',
|
|
27
|
+
cardType: 'summary_large_image',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
// Components
|
|
32
|
+
var ProfilePageHead = function (_a) {
|
|
33
|
+
var userUrl = _a.userUrl, profile = _a.profile;
|
|
34
|
+
var seoValues = seo(profile.getName() || '', profile.getAbout(), userUrl, ''
|
|
35
|
+
// profilePic
|
|
36
|
+
);
|
|
37
|
+
return (react_1.default.createElement(head_1.default, null,
|
|
38
|
+
seoValues.title && react_1.default.createElement("title", { key: "title" }, seoValues.title),
|
|
39
|
+
seoValues.about && (react_1.default.createElement("meta", { key: "description", name: "description", content: seoValues.about })),
|
|
40
|
+
seoValues.twitter.cardType && (react_1.default.createElement("meta", { key: "twitter:card", name: "twitter:card", content: seoValues.twitter.cardType })),
|
|
41
|
+
seoValues.twitter.handle && (react_1.default.createElement("meta", { key: "twitter:site", name: "twitter:site", content: seoValues.twitter.handle })),
|
|
42
|
+
seoValues.openGraph.url && (react_1.default.createElement("meta", { key: "og:url", property: "og:url", content: seoValues.openGraph.url })),
|
|
43
|
+
seoValues.openGraph.type && (react_1.default.createElement("meta", { key: "og:type", property: "og:type", content: seoValues.openGraph.type })),
|
|
44
|
+
seoValues.openGraph.title && (react_1.default.createElement("meta", { key: "og:title", property: "og:title", content: seoValues.openGraph.title })),
|
|
45
|
+
seoValues.openGraph.about && (react_1.default.createElement("meta", { key: "og:description", property: "og:description", content: seoValues.openGraph.about })),
|
|
46
|
+
seoValues.openGraph.image && (react_1.default.createElement("meta", { key: "og:image", property: "og:image", content: seoValues.openGraph.image })),
|
|
47
|
+
seoValues.openGraph.imageWidth && (react_1.default.createElement("meta", { key: "og:image:width", property: "og:image:width", content: seoValues.openGraph.imageWidth })),
|
|
48
|
+
seoValues.openGraph.imageHeight && (react_1.default.createElement("meta", { key: "og:image:height", property: "og:image:height", content: seoValues.openGraph.imageHeight })),
|
|
49
|
+
seoValues.openGraph.locale && (react_1.default.createElement("meta", { key: "og:locale", property: "og:locale", content: seoValues.openGraph.locale }))));
|
|
50
|
+
};
|
|
51
|
+
exports.ProfilePageHead = ProfilePageHead;
|