Skip to content

Commit

Permalink
fix: yarn lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Nov 13, 2023
1 parent 99e273b commit 00bad8a
Show file tree
Hide file tree
Showing 34 changed files with 129 additions and 127 deletions.
7 changes: 3 additions & 4 deletions packages/client-creators/videoplayerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions packages/components/EmojiModal/index.js

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

8 changes: 4 additions & 4 deletions packages/components/FilePreview/AudioView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -81,7 +81,7 @@ export const AudioView: React.FC<{
file.audioMetadata?.duration,
playbackStatus?.positionMillis,
isInMediaPlayer,
]
],
);

if (!file?.url)
Expand Down Expand Up @@ -152,7 +152,7 @@ export const AudioView: React.FC<{
{prettyMediaDuration(
isInMediaPlayer && playbackStatus?.positionMillis
? playbackStatus.positionMillis
: 0
: 0,
)}
</BrandText>
<BrandText style={[fontSemibold14, { color: neutral77 }]}>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/TopMenu/TopMenuMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const TopMenuMobile: FC = () => {
source={{
uri: ipfsURLToHTTPURL(
userInfo?.metadata?.image ||
nameServiceDefaultImage(isDAO, network)
nameServiceDefaultImage(isDAO, network),
),
}}
/>
Expand Down
22 changes: 11 additions & 11 deletions packages/components/boxes/PrimaryBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const PrimaryBox: React.FC<{
disabled
? [neutral67, "#B7B7B7"]
: colors
? colors
: ["#01B7C5", "#782C96"]
? colors
: ["#01B7C5", "#782C96"]
}
>
{/* ---- Content container */}
Expand All @@ -82,8 +82,8 @@ export const PrimaryBox: React.FC<{
width
? { width: width - 2 }
: fullWidth
? { width: "100%" }
: null,
? { width: "100%" }
: null,
{
backgroundColor,
borderRadius,
Expand Down Expand Up @@ -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"]
}
/>

Expand Down Expand Up @@ -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"]
}
/>
</>
Expand Down
20 changes: 10 additions & 10 deletions packages/components/hub/ProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}
>
<SecondaryButtonOutline
Expand Down Expand Up @@ -192,8 +192,8 @@ const RegisterGnoNameModal: React.FC<{
nsInfo
? "Already taken"
: notEnoughFunds
? "Not enough funds"
: "Register"
? "Not enough funds"
: "Register"
}
disabled={buttonDisabled}
fullWidth
Expand Down
4 changes: 2 additions & 2 deletions packages/components/inputs/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ export const SelectInput: React.FC<Props> = ({
!selectableData.length || disabled
? lockSVG
: openMenu
? chevronUpSVG
: chevronDownSVG
? chevronUpSVG
: chevronDownSVG
}
width={16}
height={16}
Expand Down
20 changes: 10 additions & 10 deletions packages/components/mediaPlayer/MediaNameImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) || "",
},
}
}
>
<View
Expand Down
8 changes: 4 additions & 4 deletions packages/components/mediaPlayer/MediaPlayerVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export const MediaPlayerVideo: FC<MediaPlayerVideoProps> = ({
const [localStatus, setLocalStatus] = useState<AVPlaybackStatusSuccess>();
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<View>(null);
const videoRef = useRef<Video>(null);
Expand Down Expand Up @@ -124,7 +124,7 @@ export const MediaPlayerVideo: FC<MediaPlayerVideoProps> = ({
setTimeout(() => {
onPressPlayPause();
setExtraPressCount(0);
}, 500) // 500ms to consider it's a double press
}, 500), // 500ms to consider it's a double press
);
}
};
Expand Down Expand Up @@ -289,7 +289,7 @@ export const MediaPlayerVideo: FC<MediaPlayerVideoProps> = ({
{/* Display time */}
<BrandText style={fontSemibold13}>
{`${prettyMediaDuration(
statusToUse?.positionMillis
statusToUse?.positionMillis,
// isInMediaPlayer
// ? playbackStatus?.positionMillis
// : localStatus?.positionMillis
Expand Down
2 changes: 1 addition & 1 deletion packages/components/mediaPlayer/TimerSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const TimerSlider: FC<{
{(!!playbackStatus?.durationMillis || !!media?.duration) && (
<BrandText style={timeTextStyle}>
{prettyMediaDuration(
playbackStatus?.durationMillis || media?.duration
playbackStatus?.durationMillis || media?.duration,
)}
</BrandText>
)}
Expand Down
8 changes: 4 additions & 4 deletions packages/components/mediaPlayer/VolumeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ export const VolumeSlider: FC<{
? VolumeAltIcon
: VolumeIcon
: useAltStyle
? VolumeOffAltIcon
: VolumeOffIcon
? VolumeOffAltIcon
: VolumeOffIcon
}
height={20}
width={20}
color={
useAltStyle
? secondaryColor
: isSliding || isHovered
? secondaryColor
: neutralA3
? secondaryColor
: neutralA3
}
/>
</CustomPressable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const DragAndDropNftInReceiverView: React.FC<{
nftDropedAdjustment.width <= 10
? 10
: nftDropedAdjustment.width >= 200
? 200
: nftDropedAdjustment.width;
? 200
: nftDropedAdjustment.width;
const height =
nftDropedAdjustment.height <= 10
? 10
: nftDropedAdjustment.height >= 200
? 200
: nftDropedAdjustment.height;
? 200
: nftDropedAdjustment.height;

let borderRadius = 0;

Expand Down
18 changes: 9 additions & 9 deletions packages/components/socialFeed/NewsFeed/NewsFeedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,15 @@ export const NewsFeedInput = React.forwardRef<
color: !formValues?.message
? neutral77
: formValues?.message?.length >
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT *
CHARS_LIMIT_WARNING_MULTIPLIER &&
formValues?.message?.length <
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT
? yellowDefault
: formValues?.message?.length >=
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT
? errorColor
: primaryColor,
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT *
CHARS_LIMIT_WARNING_MULTIPLIER &&
formValues?.message?.length <
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT
? yellowDefault
: formValues?.message?.length >=
SOCIAL_FEED_ARTICLE_MIN_CHARS_LIMIT
? errorColor
: primaryColor,
marginTop: layout.spacing_x0_5,
alignSelf: "flex-end",
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/teritoriNameService/NameStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const NameStatus: React.FC<{
borderColor: hasError
? errorColor
: available
? successColor
: errorColor,
? successColor
: errorColor,
}}
height={48}
fullWidth
Expand Down
Loading

0 comments on commit 00bad8a

Please sign in to comment.