diff --git a/packages/client-creators/videoplayerClient.ts b/packages/client-creators/videoplayerClient.ts index ddc184133d..28635bef02 100644 --- a/packages/client-creators/videoplayerClient.ts +++ b/packages/client-creators/videoplayerClient.ts @@ -22,13 +22,12 @@ export const signingVideoPlayerClient = async ({ if (cachedSigningClients[cacheKey]) { return cachedSigningClients[cacheKey]; } else { - const signingComswasmClient = await getKeplrSigningCosmWasmClient( - networkId - ); + const signingComswasmClient = + await getKeplrSigningCosmWasmClient(networkId); const client = new TeritoriVideoPlayerClient( signingComswasmClient, walletAddress, - videoContractAddress + videoContractAddress, ); cachedSigningClients[cacheKey] = client; diff --git a/packages/components/EmojiModal/index.js b/packages/components/EmojiModal/index.js index a70ad93a4e..d74959cd74 100644 --- a/packages/components/EmojiModal/index.js +++ b/packages/components/EmojiModal/index.js @@ -264,10 +264,10 @@ class EmojiModal extends react_1.PureComponent { shortName === query ? 3 : shortName.startsWith(query) - ? 2 - : shortName.includes(query) - ? 1 - : 0; + ? 2 + : shortName.includes(query) + ? 1 + : 0; emoji._score = score; return emoji; }) diff --git a/packages/components/FilePreview/AudioView.tsx b/packages/components/FilePreview/AudioView.tsx index 35baec9d05..23afce0456 100644 --- a/packages/components/FilePreview/AudioView.tsx +++ b/packages/components/FilePreview/AudioView.tsx @@ -39,11 +39,11 @@ export const AudioView: React.FC<{ useMediaPlayer(); const isInMediaPlayer = useMemo( () => media?.postId === postId, - [media?.postId, postId] + [media?.postId, postId], ); const duration = useMemo( () => prettyMediaDuration(file.audioMetadata?.duration), - [file] + [file], ); const onPressPlayPause = async () => { @@ -81,7 +81,7 @@ export const AudioView: React.FC<{ file.audioMetadata?.duration, playbackStatus?.positionMillis, isInMediaPlayer, - ] + ], ); if (!file?.url) @@ -152,7 +152,7 @@ export const AudioView: React.FC<{ {prettyMediaDuration( isInMediaPlayer && playbackStatus?.positionMillis ? playbackStatus.positionMillis - : 0 + : 0, )} diff --git a/packages/components/TopMenu/TopMenuMobile.tsx b/packages/components/TopMenu/TopMenuMobile.tsx index c844abacfd..fef4d43494 100644 --- a/packages/components/TopMenu/TopMenuMobile.tsx +++ b/packages/components/TopMenu/TopMenuMobile.tsx @@ -29,7 +29,7 @@ export const TopMenuMobile: FC = () => { source={{ uri: ipfsURLToHTTPURL( userInfo?.metadata?.image || - nameServiceDefaultImage(isDAO, network) + nameServiceDefaultImage(isDAO, network), ), }} /> diff --git a/packages/components/boxes/PrimaryBox.tsx b/packages/components/boxes/PrimaryBox.tsx index d6bda86f5a..50a0dae913 100644 --- a/packages/components/boxes/PrimaryBox.tsx +++ b/packages/components/boxes/PrimaryBox.tsx @@ -71,8 +71,8 @@ export const PrimaryBox: React.FC<{ disabled ? [neutral67, "#B7B7B7"] : colors - ? colors - : ["#01B7C5", "#782C96"] + ? colors + : ["#01B7C5", "#782C96"] } > {/* ---- Content container */} @@ -82,8 +82,8 @@ export const PrimaryBox: React.FC<{ width ? { width: width - 2 } : fullWidth - ? { width: "100%" } - : null, + ? { width: "100%" } + : null, { backgroundColor, borderRadius, @@ -133,8 +133,8 @@ export const PrimaryBox: React.FC<{ disabled ? [neutral67, "#666666"] : colors - ? [colors[0], colors[0]] - : ["#04B4C4", "#04B3C3"] + ? [colors[0], colors[0]] + : ["#04B4C4", "#04B3C3"] } /> @@ -174,11 +174,11 @@ export const PrimaryBox: React.FC<{ disabled ? ["#B7B7B7", "#bebbbb"] : colors - ? [ - colors[colors.length - 1], - colors[colors.length - 1], - ] - : ["#7c31a0", "#7c2fa2"] + ? [ + colors[colors.length - 1], + colors[colors.length - 1], + ] + : ["#7c31a0", "#7c2fa2"] } /> diff --git a/packages/components/hub/ProfileButton.tsx b/packages/components/hub/ProfileButton.tsx index 59f188e8d3..64547e98ca 100644 --- a/packages/components/hub/ProfileButton.tsx +++ b/packages/components/hub/ProfileButton.tsx @@ -60,14 +60,14 @@ export const ProfileButton: React.FC<{ }, } : metadata.tokenId - ? { - screen: "TNSHome", - params: { - modal: "update-name", - name: metadata.tokenId.replace(".tori", ""), - }, - } - : { screen: "ComingSoon" } + ? { + screen: "TNSHome", + params: { + modal: "update-name", + name: metadata.tokenId.replace(".tori", ""), + }, + } + : { screen: "ComingSoon" } } > = ({ !selectableData.length || disabled ? lockSVG : openMenu - ? chevronUpSVG - : chevronDownSVG + ? chevronUpSVG + : chevronDownSVG } width={16} height={16} diff --git a/packages/components/mediaPlayer/MediaNameImage.tsx b/packages/components/mediaPlayer/MediaNameImage.tsx index 8340365472..e2f397d671 100644 --- a/packages/components/mediaPlayer/MediaNameImage.tsx +++ b/packages/components/mediaPlayer/MediaNameImage.tsx @@ -39,16 +39,16 @@ export const MediaNameImage: FC<{ params: { id: media.albumId }, } : media.videoId - ? { - screen: "VideoDetail", - params: { id: media.videoId }, - } - : { - screen: "FeedPostView", - params: { - id: getNetworkObjectId(network?.id, media?.postId) || "", - }, - } + ? { + screen: "VideoDetail", + params: { id: media.videoId }, + } + : { + screen: "FeedPostView", + params: { + id: getNetworkObjectId(network?.id, media?.postId) || "", + }, + } } > = ({ const [localStatus, setLocalStatus] = useState(); const isInMediaPlayer = useMemo( () => media?.fileUrl === videoMetaInfo.url, - [videoMetaInfo.url, media?.fileUrl] + [videoMetaInfo.url, media?.fileUrl], ); const statusToUse = useMemo( () => (isInMediaPlayer ? playbackStatus : localStatus), - [isInMediaPlayer, playbackStatus, localStatus] + [isInMediaPlayer, playbackStatus, localStatus], ); const containerRef = useRef(null); const videoRef = useRef