@ludo.ninja/components 1.9.3 → 1.9.4
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.js → CardHead.jsx} +22 -15
- package/dist/components/CreationCard/{index.js → index.jsx} +19 -24
- package/dist/components/addWalletsRedirectPage/{index.js → index.jsx} +18 -11
- package/dist/components/banner/{index.js → index.jsx} +23 -17
- package/dist/components/base/Meta/index.jsx +64 -0
- package/dist/components/base/NoSSR/{index.js → index.jsx} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.js → index.jsx} +9 -5
- package/dist/components/deleteDialog/{index.js → index.jsx} +19 -14
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.js → index.jsx} +4 -2
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.js → index.jsx} +3 -1
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.js → index.jsx} +4 -2
- package/dist/components/filters/applyResetBtns/{index.js → index.jsx} +8 -5
- package/dist/components/filters/galleriesFiltersForm/{index.js → index.jsx} +14 -5
- package/dist/components/filters/{index.js → index.jsx} +35 -27
- package/dist/components/filters/mobileFilters/{index.js → index.jsx} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.js → index.jsx} +11 -4
- package/dist/components/forms/form/{index.js → index.jsx} +45 -35
- package/dist/components/forms/formsNavigation/{index.js → index.jsx} +14 -6
- package/dist/components/forms/formsTemplate/{index.js → index.jsx} +4 -3
- package/dist/components/gallery/add/addAssetToGallery/{index.js → index.jsx} +4 -2
- package/dist/components/gallery/add/addCreationToGallery/{index.js → index.jsx} +8 -7
- package/dist/components/gradientLabel/{index.js → index.jsx} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.js → index.jsx} +3 -2
- package/dist/components/headers/components/headerUserPic/{index.js → index.jsx} +3 -2
- package/dist/components/headers/header/{index.js → index.jsx} +6 -6
- package/dist/components/headers/headerSearch/{index.js → index.jsx} +7 -7
- package/dist/components/headers/headerSimple/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.js → index.jsx} +27 -17
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.js → index.jsx} +22 -11
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.js → index.jsx} +4 -3
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.js → index.jsx} +7 -6
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.js → index.jsx} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.js → index.jsx} +9 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.js → index.jsx} +3 -1
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.js → index.jsx} +27 -17
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +18 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.js → index.jsx} +9 -6
- package/dist/components/linkTabs/{index.js → index.jsx} +3 -1
- package/dist/components/linkTabs/linkTab/{index.js → index.jsx} +6 -4
- package/dist/components/myWallets/{index.js → index.jsx} +5 -4
- package/dist/components/myWallets/myWalletItem/{index.js → index.jsx} +29 -22
- package/dist/components/navigation/{index.js → index.jsx} +29 -11
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.js → MultiversXAudit.jsx} +15 -10
- package/dist/components/profile/{ProfileTabs.js → ProfileTabs.jsx} +22 -20
- package/dist/components/profile/aboutText/{index.js → index.jsx} +25 -16
- package/dist/components/profile/addToGalleryBtns/{index.js → index.jsx} +9 -6
- package/dist/components/profile/followersSocial/followers/{index.js → index.jsx} +4 -3
- package/dist/components/profile/followersSocial/{index.js → index.jsx} +7 -6
- package/dist/components/profile/followersSocial/social/{index.js → index.jsx} +9 -7
- package/dist/components/profile/info/{index.js → index.jsx} +11 -8
- package/dist/components/profile/interests/{index.js → index.jsx} +29 -14
- package/dist/components/profile/pageHead/index.jsx +52 -0
- package/dist/components/profile/profileSkeleton/{index.js → index.jsx} +15 -9
- package/dist/components/profile/profileUserCards/{index.js → index.jsx} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.js → index.jsx} +26 -21
- package/dist/components/profile/rank/{index.js → index.jsx} +15 -7
- package/dist/components/profile/stats/{index.js → index.jsx} +12 -4
- package/dist/components/profile/wallets/{index.js → index.jsx} +28 -20
- package/dist/components/profile/wrapper/{index.js → index.jsx} +12 -4
- package/dist/components/registrationPage/registrationSelectBox/{index.js → index.jsx} +3 -2
- package/dist/components/registrationPage/registrationSelection/{index.js → index.jsx} +29 -15
- package/dist/components/rewards/FAQ/{index.js → index.jsx} +20 -12
- package/dist/components/rewards/clarifications/{index.js → index.jsx} +25 -15
- package/dist/components/rewards/logoBottom/{index.js → index.jsx} +6 -5
- package/dist/components/rewards/prograssBar/{index.js → index.jsx} +5 -3
- package/dist/components/rewards/seasonBanner/{index.js → index.jsx} +3 -2
- package/dist/components/rewards/taskExpTab/{index.js → index.jsx} +31 -19
- package/dist/components/rewards/tasksGrid/{index.js → index.jsx} +6 -3
- package/dist/components/rewards/userExp/{index.js → index.jsx} +29 -23
- package/dist/components/search/{SearchInputContainer.js → SearchInputContainer.jsx} +98 -96
- package/dist/components/search/{index.js → index.jsx} +12 -10
- package/dist/components/search/searchCategories/{index.js → index.jsx} +10 -6
- package/dist/components/search/searchCloseMoreButtons/{index.js → index.jsx} +15 -12
- package/dist/components/search/searchResultCaption/{index.js → index.jsx} +6 -3
- package/dist/components/search/searchSelectsGalleries/{index.js → index.jsx} +30 -14
- package/dist/components/search/searchSelectsSets/{index.js → index.jsx} +27 -14
- package/dist/components/search/searchSimpleInput/{index.js → index.jsx} +11 -9
- package/dist/components/search/searchSuggestions/index.jsx +124 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.js → index.jsx} +4 -3
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.js → index.jsx} +7 -6
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.js → index.jsx} +18 -11
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.js → index.jsx} +14 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.js → index.jsx} +3 -5
- package/dist/components/shareDialog/index.jsx +91 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.js → index.jsx} +6 -4
- package/dist/components/sidebar/{data.js → data.jsx} +8 -8
- package/dist/components/sidebar/{index.js → index.jsx} +23 -16
- package/dist/components/sidebar/{initializer.js → initializer.jsx} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.js → index.jsx} +9 -6
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.js → index.jsx} +4 -3
- package/dist/components/socialButtons/{data.js → data.jsx} +6 -6
- package/dist/components/socialButtons/icons/discord.jsx +8 -0
- package/dist/components/socialButtons/icons/facebook.jsx +9 -0
- package/dist/components/socialButtons/icons/instagram.jsx +10 -0
- package/dist/components/socialButtons/icons/medium.jsx +8 -0
- package/dist/components/socialButtons/icons/telegram.jsx +8 -0
- package/dist/components/socialButtons/icons/twitter.jsx +8 -0
- package/dist/components/socialButtons/{index.js → index.jsx} +8 -5
- package/dist/components/tabs/icons/bell.jsx +10 -0
- package/dist/components/tabs/icons/profile.jsx +10 -0
- package/dist/components/tabs/icons/secure.jsx +9 -0
- package/dist/components/tabs/{index.js → index.jsx} +13 -10
- package/dist/components/toTopBtn/{index.js → index.jsx} +7 -5
- package/dist/dto/AssetEntity/views/AssetAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.js → index.jsx} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/Media/Audio/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Image/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Object/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Other/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Video/{index.js → index.jsx} +3 -3
- package/dist/fonts/{FontsInitializeLayout.js → FontsInitializeLayout.jsx} +4 -1
- package/dist/hooks/searchFiltersConnector/{index.js → index.jsx} +35 -33
- package/dist/hooks/useToGalleryAsset/{index.js → index.jsx} +1 -1
- package/dist/layouts/{GlobalLayout.js → GlobalLayout.jsx} +16 -15
- package/dist/layouts/base/LWithRegularHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSearchHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSimpleHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithoutHeader/{index.js → index.jsx} +4 -3
- package/dist/layouts/custom/accountLayout/{index.js → index.jsx} +11 -6
- package/dist/layouts/custom/formsLayout/{index.js → index.jsx} +5 -3
- package/dist/layouts/custom/mainLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/custom/searchLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/custom/simpleLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/pageTransitionLayout.jsx +27 -0
- package/dist/modules/notifications/{CreatorNotifications.js → CreatorNotifications.jsx} +3 -1
- package/dist/modules/user/profileData/{profileDataInitialization.js → profileDataInitialization.jsx} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.js → VirtuosoPageBuilder.jsx} +23 -18
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.js → VirtuosoToTopBtn.jsx} +1 -1
- package/dist/pages/index.jsx +18 -0
- package/dist/system/ActiveLink/{index.js → index.jsx} +5 -14
- package/dist/system/Alert/{index.js → index.jsx} +1 -1
- package/dist/system/BasicOverlay/{index.js → index.jsx} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.js → index.jsx} +6 -4
- package/dist/system/Cards/CardContent/CardCategory/{index.js → index.jsx} +5 -3
- package/dist/system/Cards/CardContent/CardLikes/{index.js → index.jsx} +11 -7
- package/dist/system/Cards/CardContent/CardShowMore/{index.js → index.jsx} +8 -5
- package/dist/system/Cards/CardContent/{index.js → index.jsx} +30 -16
- package/dist/system/Cards/CardHeadIcons/{index.js → index.jsx} +22 -15
- package/dist/system/Cards/CardMedia/CardAudio/{index.js → index.jsx} +5 -4
- package/dist/system/Cards/CardMedia/CardImage/{index.js → index.jsx} +5 -4
- package/dist/system/Cards/CardMedia/CardVideo/{index.js → index.jsx} +11 -9
- package/dist/system/Cards/CardRank/{index.js → index.jsx} +12 -6
- package/dist/system/Cards/CardsGrid/{index.js → index.jsx} +13 -8
- package/dist/system/Cards/HideLink/index.jsx +22 -0
- package/dist/system/Cards/MultiMediaCard/{index.js → index.jsx} +17 -11
- package/dist/system/Cards/RegularCard/{index.js → index.jsx} +17 -11
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.js → index.jsx} +6 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.js → index.jsx} +4 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.js → index.jsx} +15 -9
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.js → index.jsx} +8 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.js → index.jsx} +3 -2
- package/dist/system/CardsHolderWithSkeleton/{index.js → index.jsx} +6 -3
- package/dist/system/DropDown/{DropDown.test.js → DropDown.test.jsx} +11 -7
- package/dist/system/DropDown/{index.js → index.jsx} +13 -10
- package/dist/system/Forms/Checkbox/{Checkbox.test.js → Checkbox.test.jsx} +2 -13
- package/dist/system/Forms/Checkbox/{index.js → index.jsx} +15 -23
- package/dist/system/Forms/DatePicker/{index.js → index.jsx} +7 -6
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.js → ErrorLabel.test.jsx} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.js → index.jsx} +1 -1
- package/dist/system/Forms/Input/{Input.test.js → Input.test.jsx} +2 -2
- package/dist/system/Forms/Input/{index.js → index.jsx} +5 -15
- package/dist/system/Forms/RadioInput/{index.js → index.jsx} +6 -16
- package/dist/system/Forms/Selects/DesktopSelect/{index.js → index.jsx} +11 -21
- package/dist/system/Forms/Selects/MobileSelect/{index.js → index.jsx} +3 -1
- package/dist/system/Forms/TextArea/{index.js → index.jsx} +5 -15
- package/dist/system/Img/ExternalImage/{index.js → index.jsx} +1 -12
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.js → ImageInterceptor.test.jsx} +14 -10
- package/dist/system/Img/ImageInterceptor/{index.js → index.jsx} +5 -4
- package/dist/system/Img/Profilepic/{index.js → index.jsx} +9 -8
- package/dist/system/Img/Userpic/{UserPic.test.js → UserPic.test.jsx} +8 -6
- package/dist/system/Img/Userpic/{index.js → index.jsx} +13 -10
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.js → ExperienceLabel.test.jsx} +6 -16
- package/dist/system/Labels/ExperienceLabel/{index.js → index.jsx} +5 -6
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.js → InviteLabel.test.jsx} +5 -15
- package/dist/system/Labels/InviteLabel/{index.js → index.jsx} +4 -3
- package/dist/system/Modals/Modal/{Modal.test.js → Modal.test.jsx} +2 -2
- package/dist/system/Modals/Modal/{index.js → index.jsx} +4 -3
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.js → CreatorModalSidebarPortal.jsx} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.js → ModalSidebar.test.jsx} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.js → ModalSidebarPortal.jsx} +6 -4
- package/dist/system/Modals/ModalSidebar/{index.js → index.jsx} +4 -3
- package/dist/system/Overlay/{Overlay.test.js → Overlay.test.jsx} +3 -2
- package/dist/system/Overlay/{index.js → index.jsx} +3 -2
- package/dist/system/{ShareIconResize.js → ShareIconResize.jsx} +6 -5
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.js → TabNavLink.test.jsx} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.js → index.jsx} +3 -1
- package/dist/system/Tabs/TabsNav/{TabsNav.test.js → TabsNav.test.jsx} +4 -4
- package/dist/system/Tabs/TabsNav/{index.js → index.jsx} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.js → TabsPanel.test.jsx} +12 -8
- package/dist/system/Tabs/TabsPanel/{index.js → index.jsx} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.js → index.jsx} +7 -4
- package/package.json +2 -2
- package/dist/components/base/Meta/index.js +0 -60
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +0 -17
- package/dist/components/profile/pageHead/index.js +0 -51
- package/dist/components/search/searchSuggestions/index.js +0 -117
- package/dist/components/shareDialog/index.js +0 -73
- package/dist/components/socialButtons/icons/discord.js +0 -7
- package/dist/components/socialButtons/icons/facebook.js +0 -8
- package/dist/components/socialButtons/icons/instagram.js +0 -9
- package/dist/components/socialButtons/icons/medium.js +0 -7
- package/dist/components/socialButtons/icons/telegram.js +0 -7
- package/dist/components/socialButtons/icons/twitter.js +0 -7
- package/dist/components/tabs/icons/bell.js +0 -9
- package/dist/components/tabs/icons/profile.js +0 -9
- package/dist/components/tabs/icons/secure.js +0 -8
- package/dist/layouts/pageTransitionLayout.js +0 -24
- package/dist/pages/index.js +0 -16
- package/dist/system/Cards/HideLink/index.js +0 -27
- /package/dist/components/headers/components/MobileToggle/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.js → index.jsx} +0 -0
- /package/dist/components/profile/jsonLd/{index.js → index.jsx} +0 -0
- /package/dist/components/registrationPage/{index.js → index.jsx} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/ItemType/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/Media/{index.js → index.jsx} +0 -0
- /package/dist/hooks/apollo/{index.js → index.jsx} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.js → index.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.js → useFindCollectionsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.js → useFindCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.js → useGetCollectionInfoAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.js → useGetCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.js → useGetCreationsAndLikesByType.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.js → useGetMixedLikesFavoriteList.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.js → useGetTableLikes.jsx} +0 -0
- /package/dist/modules/notifications/{index.js → index.jsx} +0 -0
- /package/dist/modules/user/{store.js → store.jsx} +0 -0
- /package/dist/styles/animations/{index.js → index.jsx} +0 -0
- /package/dist/styles/{globalStyles.js → globalStyles.jsx} +0 -0
- /package/dist/styles/mixins/{boxShadow.js → boxShadow.jsx} +0 -0
- /package/dist/styles/mixins/{boxTransform.js → boxTransform.jsx} +0 -0
- /package/dist/styles/mixins/{z-indexes.js → z-indexes.jsx} +0 -0
- /package/dist/styles/typography/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/MainButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Flex/{index.js → index.jsx} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.js → index.jsx} +0 -0
- /package/dist/system/PageLoader/{index.js → index.jsx} +0 -0
- /package/dist/system/Palete/{index.js → index.jsx} +0 -0
- /package/dist/system/Text/{index.js → index.jsx} +0 -0
- /package/dist/utils/extractItemIds/{index.js → index.jsx} +0 -0
- /package/dist/utils/imageProportionsSize/{index.js → index.jsx} +0 -0
- /package/dist/utils/ui/{index.js → index.jsx} +0 -0
|
@@ -17,19 +17,25 @@ var StyledProfileSkeleton = styled_components_1.default.div(templateObject_1 ||
|
|
|
17
17
|
var ProfileSkeletonWrapper = function (_a) {
|
|
18
18
|
var profilesCount = _a.profilesCount;
|
|
19
19
|
var arr = Array.from(Array(profilesCount).keys());
|
|
20
|
-
return (
|
|
20
|
+
return (<>
|
|
21
|
+
{arr.map(function () { return (<exports.ProfileSkeleton key={Math.random()}/>); })}
|
|
22
|
+
</>);
|
|
21
23
|
};
|
|
22
24
|
exports.ProfileSkeletonWrapper = ProfileSkeletonWrapper;
|
|
23
25
|
// Component
|
|
24
26
|
var ProfileSkeleton = function () {
|
|
25
|
-
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
return (<StyledProfileSkeleton>
|
|
28
|
+
<div className={"cardLink"}>
|
|
29
|
+
<react_loading_skeleton_1.default className={'cardLinkIcon'}/>
|
|
30
|
+
<div className={'cardLinkContent'}>
|
|
31
|
+
<div className={'content'}>
|
|
32
|
+
<react_loading_skeleton_1.default className={'caption'} width={'100%'} height={'18px'}/>
|
|
33
|
+
<react_loading_skeleton_1.default className={'text'} width={'80px'} height={'16px'}/>
|
|
34
|
+
</div>
|
|
35
|
+
<react_loading_skeleton_1.default className={'text'} width={'60px'} height={'25px'} style={{ borderRadius: '25px', marginTop: '7px' }}/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</StyledProfileSkeleton>);
|
|
33
39
|
};
|
|
34
40
|
exports.ProfileSkeleton = ProfileSkeleton;
|
|
35
41
|
var templateObject_1;
|
|
@@ -13,7 +13,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
13
13
|
var StyledProfileUserCards = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: 24px 0;\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n gap: 24px;\n\n @media (max-width: 1199px) {\n grid-template-columns: 1fr 1fr;\n }\n\n @media (max-width: 600px) {\n gap: 12px;\n grid-template-columns: 1fr;\n }\n"], ["\n margin: 24px 0;\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n gap: 24px;\n\n @media (max-width: 1199px) {\n grid-template-columns: 1fr 1fr;\n }\n\n @media (max-width: 600px) {\n gap: 12px;\n grid-template-columns: 1fr;\n }\n"])));
|
|
14
14
|
var ProfileUserCards = function (_a) {
|
|
15
15
|
var children = _a.children;
|
|
16
|
-
return
|
|
16
|
+
return <StyledProfileUserCards>{children}</StyledProfileUserCards>;
|
|
17
17
|
};
|
|
18
18
|
exports.ProfileUserCards = ProfileUserCards;
|
|
19
19
|
var templateObject_1;
|
|
@@ -131,27 +131,32 @@ var ProfileUserCard = function (_a) {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}); };
|
|
134
|
-
return (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
134
|
+
return (<StyledProfileUserCard>
|
|
135
|
+
<link_1.default href={"/profile/".concat(userId, "/nfts")} className={"cardLink"}>
|
|
136
|
+
<ImageInterceptor_1.ImageInterceptor borderRadiusSkeleton={'50%'}>
|
|
137
|
+
<image_1.default src={userPic} className={'cardLinkIcon'} width={windowDimensions && windowDimensions.windowWidth < 1200
|
|
138
|
+
? 42
|
|
139
|
+
: (0, check4k_1.getAdaptiveValueWithCheck4k)({
|
|
140
|
+
windowDimensions: windowDimensions,
|
|
141
|
+
currentSize: 72,
|
|
142
|
+
})} height={windowDimensions && windowDimensions.windowWidth < 1200
|
|
143
|
+
? 42
|
|
144
|
+
: (0, check4k_1.getAdaptiveValueWithCheck4k)({
|
|
145
|
+
windowDimensions: windowDimensions,
|
|
146
|
+
currentSize: 72,
|
|
147
|
+
})} alt={'avatar'}/>
|
|
148
|
+
</ImageInterceptor_1.ImageInterceptor>
|
|
149
|
+
<div className={'cardLinkContent'}>
|
|
150
|
+
<div className={'content'}>
|
|
151
|
+
<h4 className={'caption'}>{userName}</h4>
|
|
152
|
+
{Boolean(followings) && (<p className={'text'}>{followings} Followers</p>)}
|
|
153
|
+
</div>
|
|
154
|
+
{isNeedRenderBtn && (<div className={'button'}>
|
|
155
|
+
{isFollowed ? (<SecondaryButton_1.default variant={'disabled'} text={'Unfollow'} onClick={handleUnFollow}/>) : (<SecondaryButton_1.default variant={'regular'} text={'+ Follow'} onClick={handleFollow}/>)}
|
|
156
|
+
</div>)}
|
|
157
|
+
</div>
|
|
158
|
+
</link_1.default>
|
|
159
|
+
</StyledProfileUserCard>);
|
|
155
160
|
};
|
|
156
161
|
exports.ProfileUserCard = ProfileUserCard;
|
|
157
162
|
var templateObject_1;
|
|
@@ -21,13 +21,21 @@ var RangeValue = styled_components_1.default.div(templateObject_2 || (templateOb
|
|
|
21
21
|
// Components
|
|
22
22
|
var ProfileRank = function (_a) {
|
|
23
23
|
var rank = _a.rank;
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return (<_system_1.Box>
|
|
25
|
+
<_system_1.H6 color={colors_1.TextGrayColor} mb={4}>
|
|
26
|
+
LUDO RANK
|
|
27
|
+
</_system_1.H6>
|
|
28
|
+
<_system_1.Flex>
|
|
29
|
+
<_system_1.Flex alignItems="center" borderRadius={6} width={'100%'}>
|
|
30
|
+
<_system_1.H2 mr={16} color={colors_1.BlackColor}>
|
|
31
|
+
{rank ? rank : 'unknown'}
|
|
32
|
+
</_system_1.H2>
|
|
33
|
+
<RangeContainer>
|
|
34
|
+
<RangeValue rankValue={rank} style={{ width: "".concat(rank, "%") }}/>
|
|
35
|
+
</RangeContainer>
|
|
36
|
+
</_system_1.Flex>
|
|
37
|
+
</_system_1.Flex>
|
|
38
|
+
</_system_1.Box>);
|
|
31
39
|
};
|
|
32
40
|
exports.ProfileRank = ProfileRank;
|
|
33
41
|
var templateObject_1, templateObject_2;
|
|
@@ -19,10 +19,18 @@ var StyledProfileStats = styled_components_1.default.div(templateObject_1 || (te
|
|
|
19
19
|
// Components
|
|
20
20
|
var ProfileStats = function (_a) {
|
|
21
21
|
var rank = _a.rank;
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
return (<StyledProfileStats>
|
|
23
|
+
<Palete_1.default>
|
|
24
|
+
<div className="profileStatsBlock">
|
|
25
|
+
<rank_1.ProfileRank rank={rank}/>
|
|
26
|
+
</div>
|
|
27
|
+
</Palete_1.default>
|
|
28
|
+
{/*{isSignedIn() && profileId !== getUser()?.userId && (*/}
|
|
29
|
+
{/* <div className={'profileStatsWorth'}>*/}
|
|
30
|
+
{/* <ProfileNetWorth />*/}
|
|
31
|
+
{/* </div>*/}
|
|
32
|
+
{/*)}*/}
|
|
33
|
+
</StyledProfileStats>);
|
|
26
34
|
};
|
|
27
35
|
exports.ProfileStats = ProfileStats;
|
|
28
36
|
var templateObject_1;
|
|
@@ -43,31 +43,39 @@ var ProfileWallets = function () {
|
|
|
43
43
|
var renderUserWallets = function () {
|
|
44
44
|
return userWallets === null || userWallets === void 0 ? void 0 : userWallets.map(function (userWallet) {
|
|
45
45
|
var blockChain = new core_1.BlockChainEntity(userWallet.blockchain);
|
|
46
|
-
return (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
return (<div key={userWallet.address} className={"wallet_item"}>
|
|
47
|
+
<image_1.default src={blockChain.getBlockChainIconRegular({
|
|
48
|
+
domain: (0, env_1.getStaticENVDomain)(),
|
|
49
|
+
})} className={'icon'} width={16} height={16} alt={blockChain.getBlockChainIconRegular({
|
|
50
|
+
domain: (0, env_1.getStaticENVDomain)(),
|
|
51
|
+
})}/>
|
|
52
|
+
{(0, utils_1.shortenedText)(userWallet === null || userWallet === void 0 ? void 0 : userWallet.address)}
|
|
53
|
+
</div>);
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
if (!isSignedIn)
|
|
56
57
|
return null;
|
|
57
58
|
var user = new URLSearchParams(getUser).toString();
|
|
58
|
-
return (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
return (<StyledProfileWallets>
|
|
60
|
+
<Palete_1.default>
|
|
61
|
+
<_system_1.Flex justifyContent="space-between" alignItems="center">
|
|
62
|
+
<_system_1.H5 color={colors_1.BlackColor}>Wallets</_system_1.H5>
|
|
63
|
+
<div className={'manageBtn'} onClick={function () { return openModalSidebarPortal(<myWallets_1.default />); }}>
|
|
64
|
+
<_system_2.SmallText color={colors_1.AccentColor}>Manage</_system_2.SmallText>
|
|
65
|
+
</div>
|
|
66
|
+
</_system_1.Flex>
|
|
67
|
+
<div className={'wallets'}>{renderUserWallets()}</div>
|
|
68
|
+
<div className={'add_wallets'} onClick={function () {
|
|
69
|
+
window.open("".concat(process_1.default.env.NEXT_PUBLIC_AUTH_HOST, "/add_wallets/?").concat(user, "&fallback_url=").concat(window.location.href.replace(/\s/g, '')), '_self');
|
|
70
|
+
}}>
|
|
71
|
+
<div className={'icon'}>
|
|
72
|
+
<plus_svg_1.default style={(0, scale_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 })}/>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<_system_2.SmallText color={colors_1.AccentColor}>Add new</_system_2.SmallText>
|
|
76
|
+
</div>
|
|
77
|
+
</Palete_1.default>
|
|
78
|
+
</StyledProfileWallets>);
|
|
71
79
|
};
|
|
72
80
|
exports.ProfileWallets = ProfileWallets;
|
|
73
81
|
var templateObject_1;
|
|
@@ -9,9 +9,17 @@ var profile_1 = require("@/components/profile");
|
|
|
9
9
|
// Components
|
|
10
10
|
var ProfileWrapper = function (_a) {
|
|
11
11
|
var profile = _a.profile, url = _a.url, children = _a.children;
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return (<>
|
|
13
|
+
<profile_1.ProfilePageHead userUrl={url} profile={profile}/>
|
|
14
|
+
|
|
15
|
+
<profile_1.ProfileInfo profile={profile}/>
|
|
16
|
+
|
|
17
|
+
{children}
|
|
18
|
+
|
|
19
|
+
{/*<script*/}
|
|
20
|
+
{/* type="application/ld+json"*/}
|
|
21
|
+
{/* dangerouslySetInnerHTML={profileJSONLD(profile as schema.IProfile, '')}*/}
|
|
22
|
+
{/*/>*/}
|
|
23
|
+
</>);
|
|
16
24
|
};
|
|
17
25
|
exports.ProfileWrapper = ProfileWrapper;
|
|
@@ -17,8 +17,9 @@ var StyledRegistrationSelectBox = styled_components_1.default.div(templateObject
|
|
|
17
17
|
}, function (props) { return (props.isSelected ? 0.8 : 0.5); }, colors_1.BlackColor, colors_1.WhiteColor, colors_1.WhiteColor);
|
|
18
18
|
var RegistrationSelectBox = function (_a) {
|
|
19
19
|
var name = _a.name, image = _a.image, selected = _a.selected, onClick = _a.onClick;
|
|
20
|
-
return (
|
|
21
|
-
|
|
20
|
+
return (<StyledRegistrationSelectBox isSelected={selected} image={image} onClick={function () { return onClick(name); }}>
|
|
21
|
+
<h2 className={'text'}>{name}</h2>
|
|
22
|
+
</StyledRegistrationSelectBox>);
|
|
22
23
|
};
|
|
23
24
|
exports.default = RegistrationSelectBox;
|
|
24
25
|
var templateObject_1;
|
|
@@ -22,21 +22,35 @@ var StyledRegistrationSelection = styled_components_1.default.div(templateObject
|
|
|
22
22
|
// Components
|
|
23
23
|
var RegistrationSelection = function (_a) {
|
|
24
24
|
var step = _a.step, title = _a.title, subtitle = _a.subtitle, maxSteps = _a.maxSteps, values = _a.values, selectedNames = _a.selectedNames, saveValue = _a.saveValue, onClick = _a.onClick, onSaveClick = _a.onSaveClick, text = _a.text;
|
|
25
|
-
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
return (<StyledRegistrationSelection>
|
|
26
|
+
<div className="info">
|
|
27
|
+
<_system_1.Box>
|
|
28
|
+
<_system_1.Flex justifyContent={'center'}>
|
|
29
|
+
<StyledCaption color={colors_1.AccentColor} mr={10}>{"Step ".concat(step, "/").concat(maxSteps, " - ")}</StyledCaption>
|
|
30
|
+
<StyledCaption color={colors_2.BlackColor}>{title}</StyledCaption>
|
|
31
|
+
</_system_1.Flex>
|
|
32
|
+
<_system_1.H3 color={colors_2.TextGrayColor} mt={16} mb={4} fontSize={18} textAlign={'center'}>
|
|
33
|
+
{subtitle}
|
|
34
|
+
</_system_1.H3>
|
|
35
|
+
<ui_1.MainText fontSize={13} textAlign={'center'} color={colors_2.TextGrayColor}>
|
|
36
|
+
{text}
|
|
37
|
+
</ui_1.MainText>
|
|
38
|
+
</_system_1.Box>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div className="content">
|
|
42
|
+
<div className="content-values">
|
|
43
|
+
{values === null || values === void 0 ? void 0 : values.map(function (_a) {
|
|
44
|
+
var name = _a.name, imageUrl = _a.imageUrl;
|
|
45
|
+
return (<registrationPage_1.RegistrationSelectBox key={name} name={name} image={imageUrl} selected={selectedNames.includes(name)} onClick={onClick}/>);
|
|
46
|
+
})}
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div className="content-next">
|
|
50
|
+
<MainButton_1.default onClick={onSaveClick} variant="primaryM" text={saveValue}/>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</StyledRegistrationSelection>);
|
|
40
54
|
};
|
|
41
55
|
// Export
|
|
42
56
|
exports.default = RegistrationSelection;
|
|
@@ -101,10 +101,10 @@ var FAQ_ITEMS = [
|
|
|
101
101
|
// Component
|
|
102
102
|
var ArrowIconResize = function () {
|
|
103
103
|
var windowDimensions = (0, screen_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
104
|
-
return (
|
|
104
|
+
return (<arrow_up_light_svg_1.default style={(0, scale_1.getAdaptiveScale)({
|
|
105
105
|
windowDimensions: windowDimensions,
|
|
106
106
|
currentSize: 1,
|
|
107
|
-
})
|
|
107
|
+
})}/>);
|
|
108
108
|
};
|
|
109
109
|
var FAQRewards = function () {
|
|
110
110
|
var _a = (0, react_1.useState)(Array(3).fill(false)), openTopics = _a[0], setOpenTopics = _a[1];
|
|
@@ -115,17 +115,25 @@ var FAQRewards = function () {
|
|
|
115
115
|
return newOpenTopics;
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
|
-
return (
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
return (<StyledFAQRewards>
|
|
119
|
+
<TitleFAQ>Frequently Asked Questions</TitleFAQ>
|
|
120
|
+
<_system_1.Flex flexDirection="column" width="100%">
|
|
121
|
+
{FAQ_ITEMS.map(function (_a) {
|
|
121
122
|
var id = _a.id, title = _a.title, description = _a.description;
|
|
122
|
-
return (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
return (<StyledFlexDivider key={id}>
|
|
124
|
+
<StyledTitleWrapper>
|
|
125
|
+
<AccordionTitle>{title}</AccordionTitle>
|
|
126
|
+
<StyledArrowIcon isShow={openTopics[id]} onClick={function () { return toggleDescription(id); }}>
|
|
127
|
+
<ArrowIconResize />
|
|
128
|
+
</StyledArrowIcon>
|
|
129
|
+
</StyledTitleWrapper>
|
|
130
|
+
<p className={"faq_desc ".concat(openTopics[id] ? 'open' : '')}>
|
|
131
|
+
{description}
|
|
132
|
+
</p>
|
|
133
|
+
</StyledFlexDivider>);
|
|
134
|
+
})}
|
|
135
|
+
</_system_1.Flex>
|
|
136
|
+
</StyledFAQRewards>);
|
|
129
137
|
};
|
|
130
138
|
// Export
|
|
131
139
|
exports.default = FAQRewards;
|
|
@@ -30,24 +30,34 @@ var StyledFlex = (0, styled_components_1.default)(_system_1.Flex)(templateObject
|
|
|
30
30
|
// Component
|
|
31
31
|
var Clarifications = function (_a) {
|
|
32
32
|
var goalsArr = _a.goalsArr;
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
return (<StyledClarifications>
|
|
34
|
+
<_system_1.Flex flexDirection="column" width="100%" style={{ gap: '16px' }}>
|
|
35
|
+
<_system_1.H3 style={{
|
|
36
|
+
lineHeight: '1.5',
|
|
37
|
+
fontWeight: 600,
|
|
38
|
+
fontSize: '2.4em',
|
|
39
|
+
textAlign: 'center',
|
|
40
|
+
fontFamily: vars_1.poppinsFontVarCss.css,
|
|
41
|
+
}} color={colors_1.WhiteColor}>
|
|
42
|
+
How does it work?
|
|
43
|
+
</_system_1.H3>
|
|
44
|
+
<p className={"clar_desc"}>
|
|
45
|
+
Further developing and growing NFT Trader for our team has been an
|
|
46
|
+
exciting journey so far.
|
|
47
|
+
</p>
|
|
48
|
+
</_system_1.Flex>
|
|
49
|
+
<_system_1.Flex flexDirection="column" width="100%">
|
|
50
|
+
{goalsArr && goalsArr.length > 0
|
|
44
51
|
? goalsArr.map(function (_a) {
|
|
45
52
|
var desc = _a.desc, expPerTime = _a.expPerTime;
|
|
46
|
-
return (
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
return (<StyledFlex key={desc + expPerTime}>
|
|
54
|
+
<p className={"goal_desc"}>{desc}</p>
|
|
55
|
+
<p className={"goal_exp"}>{expPerTime}</p>
|
|
56
|
+
</StyledFlex>);
|
|
49
57
|
})
|
|
50
|
-
: null
|
|
58
|
+
: null}
|
|
59
|
+
</_system_1.Flex>
|
|
60
|
+
</StyledClarifications>);
|
|
51
61
|
};
|
|
52
62
|
//Export
|
|
53
63
|
exports.default = Clarifications;
|
|
@@ -18,11 +18,12 @@ var StyledBottomLogo = (0, styled_components_1.default)(_system_1.Flex)(template
|
|
|
18
18
|
// Component
|
|
19
19
|
var BottomLogo = function () {
|
|
20
20
|
var windowDimensions = (0, screen_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return (<StyledBottomLogo>
|
|
22
|
+
<main_logo_dark_svg_1.default className={'bottom_logo'} style={(0, scale_1.getAdaptiveScale)({
|
|
23
|
+
windowDimensions: windowDimensions,
|
|
24
|
+
currentSize: 0.8,
|
|
25
|
+
})}/>
|
|
26
|
+
</StyledBottomLogo>);
|
|
26
27
|
};
|
|
27
28
|
// Export
|
|
28
29
|
exports.default = BottomLogo;
|
|
@@ -23,9 +23,11 @@ var StyledProgress = styled_components_1.default.div(templateObject_1 || (templa
|
|
|
23
23
|
// Component
|
|
24
24
|
var ProgressBar = function (_a) {
|
|
25
25
|
var height = _a.height, percent = _a.percent, isUserTab = _a.isUserTab;
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
return (<>
|
|
27
|
+
<StyledProgress percent={percent} height={height} isForUser={isUserTab}>
|
|
28
|
+
<div className="progress_fill"></div>
|
|
29
|
+
</StyledProgress>
|
|
30
|
+
</>);
|
|
29
31
|
};
|
|
30
32
|
// Export
|
|
31
33
|
exports.default = ProgressBar;
|
|
@@ -21,8 +21,9 @@ var SeasonTitle = (0, styled_components_1.default)(_system_1.H2)(templateObject_
|
|
|
21
21
|
// Component
|
|
22
22
|
var SeasonsTab = function (_a) {
|
|
23
23
|
var title = _a.title;
|
|
24
|
-
return (
|
|
25
|
-
|
|
24
|
+
return (<StyledSeasons>
|
|
25
|
+
<SeasonTitle>{title !== null && title !== void 0 ? title : 'Seasons coming soon...'}</SeasonTitle>
|
|
26
|
+
</StyledSeasons>);
|
|
26
27
|
};
|
|
27
28
|
//Export
|
|
28
29
|
exports.default = SeasonsTab;
|
|
@@ -39,25 +39,37 @@ var TaskTitle = (0, styled_components_1.default)(_system_1.H5)(templateObject_2
|
|
|
39
39
|
// Component
|
|
40
40
|
var TaskExpTab = function (_a) {
|
|
41
41
|
var taskTitle = _a.taskTitle, taskDesc = _a.taskDesc, ernExp = _a.ernExp, segmentsNumber = _a.segmentsNumber, partDone = _a.partDone, partReq = _a.partReq, action = _a.action;
|
|
42
|
-
return (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
return (<StyledTaskExpTab>
|
|
43
|
+
<_system_1.Flex justifyContent="space-between" width="100%">
|
|
44
|
+
<TaskTitle>{taskTitle !== null && taskTitle !== void 0 ? taskTitle : 'Another task'}</TaskTitle>
|
|
45
|
+
<_system_1.Flex className={'gap_8'}>
|
|
46
|
+
<p className={"erned_exp"}>
|
|
47
|
+
{segmentsNumber !== 1 ? "from ".concat(ernExp) : ernExp} XP
|
|
48
|
+
</p>
|
|
49
|
+
<img src={'/rewardsPage/XP_logo.svg'} alt="Experience logo" className="exp_logo"/>
|
|
50
|
+
</_system_1.Flex>
|
|
51
|
+
</_system_1.Flex>
|
|
52
|
+
<_system_1.Flex justifyContent={segmentsNumber ? 'space-between' : 'center'} className={"task_content"}>
|
|
53
|
+
<p className={"task_desc"}>
|
|
54
|
+
{taskDesc !== null && taskDesc !== void 0 ? taskDesc : 'Another task text goes here.'}
|
|
55
|
+
</p>
|
|
56
|
+
{segmentsNumber ? (<_system_1.Flex className={'gap_8'} flexDirection={'column'}>
|
|
57
|
+
<_system_1.Flex className={'gap_8'} width="100%">
|
|
58
|
+
{Array.from(Array(segmentsNumber)).map(function (_, index) {
|
|
59
|
+
return (<prograssBar_1.default key={index} height={12} percent={partDone > index ? 100 : 0}/>);
|
|
60
|
+
})}
|
|
61
|
+
</_system_1.Flex>
|
|
62
|
+
|
|
63
|
+
<_system_1.Flex justifyContent="space-between" width="100%">
|
|
64
|
+
<p className={"task_part_complete"}>0</p>
|
|
65
|
+
<p className={"task_part_requried"}>{partReq}</p>
|
|
66
|
+
</_system_1.Flex>
|
|
67
|
+
</_system_1.Flex>) : null}
|
|
68
|
+
</_system_1.Flex>
|
|
69
|
+
{action && (<_system_1.Flex justifyContent={'center'}>
|
|
70
|
+
<rewardsButton_1.default onClick={action.onClick}>{action.text}</rewardsButton_1.default>
|
|
71
|
+
</_system_1.Flex>)}
|
|
72
|
+
</StyledTaskExpTab>);
|
|
61
73
|
};
|
|
62
74
|
// Export
|
|
63
75
|
exports.default = TaskExpTab;
|
|
@@ -133,9 +133,12 @@ var Tasks = function (_a) {
|
|
|
133
133
|
}, []);
|
|
134
134
|
if (!(tasks === null || tasks === void 0 ? void 0 : tasks.length))
|
|
135
135
|
return null;
|
|
136
|
-
return (
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
return (<StyledTasks>
|
|
137
|
+
<SH3>Tasks</SH3>
|
|
138
|
+
<StyledGrid>
|
|
139
|
+
{tasks === null || tasks === void 0 ? void 0 : tasks.map(function (task) { return (<taskExpTab_1.default key={Number(task.taskId)} taskTitle={task.name || 'No name'} taskDesc={task.description || 'No description'} ernExp={(task === null || task === void 0 ? void 0 : task.minPointsAward) || 0} segmentsNumber={(task === null || task === void 0 ? void 0 : task.maxRepeats) || 0} partDone={(task === null || task === void 0 ? void 0 : task.repeatsCompleted) || 0} partReq={(task === null || task === void 0 ? void 0 : task.maxRepeats) || 0} action={task.taskType ? BUTTONS_BY_TASK_TYPE[task.taskType] : undefined}/>); })}
|
|
140
|
+
</StyledGrid>
|
|
141
|
+
</StyledTasks>);
|
|
139
142
|
};
|
|
140
143
|
// Export
|
|
141
144
|
exports.default = Tasks;
|