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
commit0b3e6fdf553a481bdd899a2608376dbb95c8e72e (patch)
tree615381124b54fb8a10523335c971b5a2d208b767 /extension/react-app/src/components/ContinueButton.tsx
parentdeca77889cfc8eaa4065694f113525eda365e5d0 (diff)
parent0862b388dc0f07e45b6daeaec1f8c05925623692 (diff)
downloadsncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.tar.gz
sncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.tar.bz2
sncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.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>
);