Skip to content

Commit

Permalink
Merge pull request #25 from guardian/da_help
Browse files Browse the repository at this point in the history
Adding Help Button
  • Loading branch information
Dala0 authored Dec 16, 2024
2 parents d43d53d + c4b1922 commit 778e012
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/pluto-headers",
"version": "2.0.4",
"version": "2.1.0",
"description": "Header components for pluto",
"repository": "git://github.com/guardian/pluto-headers",
"main": "build/index",
Expand Down
16 changes: 11 additions & 5 deletions src/components/AppSwitcher/LoginComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const LoginComponent:React.FC<LoginComponentProps> = (props) => {

const toggleThemeMode = ()=>themeContext.changeDarkMode(!themeContext.darkMode);
const openDocs = ()=> window.open(
"https://docs.google.com/document/d/1QG9mOu_HDBoGqQs7Dly0sxifk4w9vaJiDiWdi3Uk1a8",
"pluto-core/help",
"_blank"
)

Expand Down Expand Up @@ -167,10 +167,16 @@ const LoginComponent:React.FC<LoginComponentProps> = (props) => {
</Tooltip>
</Grid>
<Grid item>
<Tooltip title="Open pluto guide">
<IconButton onClick={openDocs} className={classes.iconButton}>
<HelpOutline style={{color: themeContext.darkMode ? "rgba(0,0,0,0.54)" : "inherit" }}/>
</IconButton>
<Tooltip title="Open help page">
<Button
className="help-button"
variant="outlined"
size="small"
onClick={openDocs}
style={{ marginLeft: "10px", borderColor: "black", color: "black" }}
>
Help
</Button>
</Tooltip>
</Grid>
{
Expand Down

0 comments on commit 778e012

Please sign in to comment.