Skip to content

Commit 29a4328

Browse files
authored
Merge pull request #71 from layer5io/leecalcote-patch-7
Add VideosButton component to AuthedDashboard
2 parents b72882a + 97e0ec9 commit 29a4328

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

ui/src/components/ExtensionComponent/AuthedDashboard.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { InfoCircleIcon, CustomTooltip, Box, CircularProgress,SistentThemeProvid
2424
// import KanvasColor from "../../img/SVGs/kanvasColor";
2525
import KanvasWhite from "../../img/SVGs/kanvasWhite";
2626
import DocsIcon from "../../img/SVGs/docsIcon";
27+
import VideosIcon from "../../img/SVGs/videosIcon";
2728
import KanvasHorizontalLight from "../../img/SVGs/KanvasHorizontalLight";
2829

2930
import { randomApplicationNameGenerator } from "../../utils";
@@ -52,6 +53,23 @@ const DocsButton = ({ isDarkTheme, onClick }) => (
5253
</StyledButton>
5354
);
5455

56+
const VideosButton = ({ isDarkTheme, onClick }) => (
57+
<StyledButton
58+
size="small"
59+
onClick={onClick}
60+
style={{
61+
backgroundColor: isDarkTheme ? "#393F49" : "#D7DADE",
62+
}}
63+
>
64+
<VideosIcon
65+
width="24"
66+
height="24"
67+
CustomColor={isDarkTheme ? "white" : "#3C494F"}
68+
/>
69+
&nbsp;Videos
70+
</StyledButton>
71+
);
72+
5573
const HeaderSection = ({ isDarkTheme }) => (
5674
<MuiBox>
5775
<MuiBox
@@ -68,7 +86,12 @@ const HeaderSection = ({ isDarkTheme }) => (
6886
window.ddClient.host.openExternal("https://docs.layer5.io/kanvas/")
6987
}
7088
/>
71-
89+
<VideosButton
90+
isDarkTheme={isDarkTheme}
91+
onClick={() =>
92+
window.ddClient.host.openExternal("https://docs.layer5.io/videos/")
93+
}
94+
/>
7295
<UserAccountSection isDarkTheme={isDarkTheme} />
7396
</MuiBox>
7497
<MuiBox display="flex" justifyContent="center" mb={2}>

0 commit comments

Comments
 (0)