diff options
author | Hailey <me@haileyok.com> | 2024-09-04 10:59:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:59:06 -0700 |
commit | 6382a91fb0de911a7f99f5eaa17ed5c050fb7905 (patch) | |
tree | 525fb4b54b2fbd8df5cf882943a97d0542ee2259 /src/view/com/util/post-embeds/VideoEmbed.tsx | |
parent | 5f5c14d044042e25b78bd173d245d5790843ff85 (diff) | |
download | voidsky-6382a91fb0de911a7f99f5eaa17ed5c050fb7905.tar.zst |
[Video] Use same play button for gifs and videos (#5144)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbed.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbed.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx index 988ba5739..d8410951a 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.tsx @@ -8,9 +8,9 @@ import {useLingui} from '@lingui/react' import {clamp} from '#/lib/numbers' import {useGate} from '#/lib/statsig/statsig' import {VideoEmbedInnerNative} from '#/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative' -import {atoms as a, useTheme} from '#/alf' +import {atoms as a} from '#/alf' import {Button} from '#/components/Button' -import {Play_Filled_Corner2_Rounded as PlayIcon} from '#/components/icons/Play' +import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' import {VisibilityView} from '../../../../../modules/expo-bluesky-swiss-army' import {ErrorBoundary} from '../ErrorBoundary' import {useActiveVideoNative} from './ActiveVideoNativeContext' @@ -18,7 +18,6 @@ import * as VideoFallback from './VideoEmbedInner/VideoFallback' export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { const {_} = useLingui() - const t = useTheme() const {activeSource, activeViewId, setActiveSource, player} = useActiveVideoNative() const viewId = useId() @@ -95,7 +94,7 @@ export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) { }} label={_(msg`Play video`)} color="secondary"> - <PlayIcon width={48} fill={t.palette.white} /> + <PlayButtonIcon /> </Button> </> )} |