-
{__('Level %current_level%', { current_level: level })}
-
-
} size={14} />
+
+
{__('Level %current_level%', { current_level: level })}
+
+ } size={14} />
+
+ }
+ >
+
+
- }
- >
+
+ );
+ } else {
+ return (
-
- );
+ );
+ }
}
type LevelIconProps = {
diff --git a/ui/component/channelThumbnail/view.jsx b/ui/component/channelThumbnail/view.jsx
index c5bc3dd02..e24c58608 100644
--- a/ui/component/channelThumbnail/view.jsx
+++ b/ui/component/channelThumbnail/view.jsx
@@ -23,6 +23,7 @@ type Props = {
showDelayedMessage?: boolean,
noLazyLoad?: boolean,
hideStakedIndicator?: boolean,
+ hideTooltip?: boolean,
xsmall?: boolean,
noOptimization?: boolean,
setThumbUploadError: (boolean) => void,
@@ -45,11 +46,12 @@ function ChannelThumbnail(props: Props) {
showDelayedMessage = false,
noLazyLoad,
hideStakedIndicator = false,
+ hideTooltip,
setThumbUploadError,
ThumbUploadError,
} = props;
const [thumbLoadError, setThumbLoadError] = React.useState(ThumbUploadError);
- const shouldResolve = claim === undefined;
+ const shouldResolve = !isResolving && claim === undefined;
const thumbnail = rawThumbnail && rawThumbnail.trim().replace(/^http:\/\//i, 'https://');
const thumbnailPreview = rawThumbnailPreview && rawThumbnailPreview.trim().replace(/^http:\/\//i, 'https://');
const defaultAvatar = AVATAR_DEFAULT || Gerbil;
@@ -77,7 +79,7 @@ function ChannelThumbnail(props: Props) {
if (isGif && !allowGifs) {
return (
- {!hideStakedIndicator && }
+ {!hideStakedIndicator && }
);
}
@@ -91,6 +93,7 @@ function ChannelThumbnail(props: Props) {
'channel-thumbnail--resolving': isResolving,
})}
>
+ {/* show delay necessary? */}
{showDelayedMessage ? (
{__('This will be visible in a few minutes.')}
) : (
diff --git a/ui/component/claimList/view.jsx b/ui/component/claimList/view.jsx
index 891f926b8..01a935759 100644
--- a/ui/component/claimList/view.jsx
+++ b/ui/component/claimList/view.jsx
@@ -102,6 +102,7 @@ export default function ClaimList(props: Props) {
let tileUris = (prefixUris || []).concat(uris || []);
tileUris = tileUris.filter((uri) => !excludeUris.includes(uri));
+ if (prefixUris && prefixUris.length) tileUris.splice(prefixUris.length * -1, prefixUris.length);
const totalLength = tileUris.length;
diff --git a/ui/component/claimMenuList/view.jsx b/ui/component/claimMenuList/view.jsx
index e128c1303..f1f57787d 100644
--- a/ui/component/claimMenuList/view.jsx
+++ b/ui/component/claimMenuList/view.jsx
@@ -39,7 +39,7 @@ type Props = {
doChannelUnmute: (string) => void,
doCommentModBlock: (string) => void,
doCommentModUnBlock: (string) => void,
- doCommentModBlockAsAdmin: (string, string) => void,
+ doCommentModBlockAsAdmin: (string, ?string, ?string) => void,
doCommentModUnBlockAsAdmin: (string, string) => void,
doCollectionEdit: (string, any) => void,
hasClaimInWatchLater: boolean,
@@ -232,7 +232,7 @@ function ClaimMenuList(props: Props) {
if (channelIsAdminBlocked) {
doCommentModUnBlockAsAdmin(contentChannelUri, '');
} else {
- doCommentModBlockAsAdmin(contentChannelUri, '');
+ doCommentModBlockAsAdmin(contentChannelUri, undefined, undefined);
}
}
diff --git a/ui/component/claimPreview/claim-preview-loading.jsx b/ui/component/claimPreview/claim-preview-loading.jsx
index e7d313d7f..47c8e3665 100644
--- a/ui/component/claimPreview/claim-preview-loading.jsx
+++ b/ui/component/claimPreview/claim-preview-loading.jsx
@@ -11,17 +11,24 @@ function ClaimPreviewLoading(props: Props) {
const { isChannel, type } = props;
return (
diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx
index 67d05d74d..5664655af 100644
--- a/ui/component/claimPreview/view.jsx
+++ b/ui/component/claimPreview/view.jsx
@@ -30,6 +30,7 @@ import ClaimPreviewLoading from './claim-preview-loading';
import ClaimPreviewHidden from './claim-preview-no-mature';
import ClaimPreviewNoContent from './claim-preview-no-content';
import CollectionEditButtons from 'component/collectionEditButtons';
+import { useIsMobile } from 'effects/use-screensize';
import AbandonedChannelPreview from 'component/abandonedChannelPreview';
// preview images used on the landing page and on the channel page
@@ -143,6 +144,8 @@ const ClaimPreview = forwardRef
((props: Props, ref: any) => {
unavailableUris,
} = props;
+ const isMobile = useIsMobile();
+
const isCollection = claim && claim.value_type === 'collection';
const collectionClaimId = isCollection && claim && claim.claim_id;
const listId = collectionId || collectionClaimId;
@@ -160,15 +163,18 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => {
return ;
}
const formattedSubCount = toCompactNotation(channelSubCount, lang, 10000);
+ const formattedSubCountLocale = Number(channelSubCount).toLocaleString();
return (
-
-
- {channelSubCount === 1 ? __('1 Follower') : __('%formattedSubCount% Followers', { formattedSubCount })}
-
-
+
+
+
+ {channelSubCount === 1 ? __('1 Follower') : __('%formattedSubCount% Followers', { formattedSubCount })}
+
+
+
);
}, [channelSubCount]);
- const isValid = uri && isURIValid(uri);
+ const isValid = uri && isURIValid(uri, false);
// $FlowFixMe
const isPlayable =
@@ -359,7 +365,7 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => {
{/* @endif */}