Skip to content

Commit

Permalink
Merge pull request #59 from Reedham20/main
Browse files Browse the repository at this point in the history
added Problem list website links into footer
  • Loading branch information
architec authored Nov 18, 2021
2 parents 4f164e5 + 6428b9b commit 2e9d146
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 20 additions & 4 deletions src/pages/Popup/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Typography from '@mui/material/Typography';
import AssignmentIcon from '@mui/icons-material/Assignment';
import DeleteIcon from '@mui/icons-material/Delete';
import GitHubIcon from '@mui/icons-material/GitHub';
import AccountTreeIcon from '@mui/icons-material/AccountTree';
import { ListItemSecondaryAction } from '@mui/material';

// helper functions
Expand Down Expand Up @@ -153,18 +154,33 @@ class Popup extends Component {
{itemsList}
</List>
<div class="footer" >
<IconButton
<IconButton
edge="end"
size="small"
aria-label="delete"
onClick={(e) => { chrome.tabs.update({ url: 'https://github.com/arch-org/mistake' }); e.preventDefault(); }}
>
<GitHubIcon style={{ fontSize: 'xx-small' }} />
</IconButton>
<IconButton
edge="end"
size="small"
aria-label="delete"
onClick={(e) => { chrome.tabs.update({ url: 'https://www.programcreek.com/2012/11/top-10-algorithms-for-coding-interview/' }); e.preventDefault(); }}
>
<AccountTreeIcon style={{ fontSize: 'xx-small' }} />
</IconButton>
<IconButton
edge="end"
size="small"
aria-label="delete"
onClick={(e) => { chrome.tabs.update({url: 'https://github.com/arch-org/mistake'});e.preventDefault();}}
onClick={(e) => { chrome.tabs.update({ url: 'https://leetcode.com/discuss/general-discussion/460599/blind-75-leetcode-questions' }); e.preventDefault(); }}
>
<GitHubIcon style={{fontSize: 'xx-small'}} />
<AccountTreeIcon style={{ fontSize: 'xx-small' }} />
</IconButton>
</div>
</header>
</div>

);
}
}
Expand Down

0 comments on commit 2e9d146

Please sign in to comment.