summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ContinueButton.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-27 11:17:26 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-27 11:17:26 -0700
commit57d49955973c94da59b83075a212be4cad7078eb (patch)
treee95b0ead1d565f38242af57399d20ba5ed56e905 /extension/react-app/src/components/ContinueButton.tsx
parentd45ce41f6476a96cd0e4d375f7cd00393865d9cf (diff)
parentd2842f655c4d02952d8cf58ec3a2c927704cabae (diff)
downloadsncontinue-57d49955973c94da59b83075a212be4cad7078eb.tar.gz
sncontinue-57d49955973c94da59b83075a212be4cad7078eb.tar.bz2
sncontinue-57d49955973c94da59b83075a212be4cad7078eb.zip
Merge branch 'main' into newer-simpler-stream-algo
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>
);