Skip to content

Commit

Permalink
Adding help button
Browse files Browse the repository at this point in the history
  • Loading branch information
Dala0 committed Dec 16, 2024
1 parent d43d53d commit 4ec3d22
Show file tree
Hide file tree
Showing 2 changed files with 11 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
15 changes: 10 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,15 @@ 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="login-button"
variant="outlined"
size="small"
onClick={openDocs}
>
Help
</Button>
</Tooltip>
</Grid>
{
Expand Down

0 comments on commit 4ec3d22

Please sign in to comment.