summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ContinueButton.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-26 16:39:07 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-26 16:39:07 -0700
commitf3c6533d4054de5a71c8867c2b76fc8b0747447c (patch)
tree8e53ce9533aa42ee5d0a31504aa07be691d87157 /extension/react-app/src/components/ContinueButton.tsx
parentf403bbe26b8864ff5367eab08afe4a01fdde8e72 (diff)
parent292d4d10ce28d720d61f97918c490b0d9cdae9e7 (diff)
downloadsncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.tar.gz
sncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.tar.bz2
sncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.zip
Merge branch 'main' into styled-code
Diffstat (limited to 'extension/react-app/src/components/ContinueButton.tsx')
-rw-r--r--extension/react-app/src/components/ContinueButton.tsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/extension/react-app/src/components/ContinueButton.tsx b/extension/react-app/src/components/ContinueButton.tsx
index c6117bf9..ef6719b7 100644
--- a/extension/react-app/src/components/ContinueButton.tsx
+++ b/extension/react-app/src/components/ContinueButton.tsx
@@ -1,6 +1,8 @@
import styled, { keyframes } from "styled-components";
import { Button } from ".";
import { Play } from "@styled-icons/heroicons-outline";
+import { useSelector } from "react-redux";
+import { RootStore } from "../redux/store";
let StyledButton = styled(Button)`
margin: auto;
@@ -25,14 +27,21 @@ let StyledButton = styled(Button)`
`;
function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) {
+ const vscMediaUrl = useSelector(
+ (state: RootStore) => state.config.vscMediaUrl
+ );
+
return (
<StyledButton
hidden={props.hidden}
className="m-auto"
onClick={props.onClick}
>
- <Play />
- {/* <img src={"/continue_arrow.png"} width="16px"></img> */}
+ {vscMediaUrl ? (
+ <img src={`${vscMediaUrl}/play_button.png`} width="22px" />
+ ) : (
+ <Play />
+ )}
Continue
</StyledButton>
);