Skip to content

Commit

Permalink
quickfix -- button layout
Browse files Browse the repository at this point in the history
  • Loading branch information
o-bm committed Apr 6, 2024
1 parent 6af913c commit 0d092ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions client/src/pages/Challenge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ const Challenge = () => {
) : (
<Col lg={{ span: 6, offset: 0 }} xl={{ span: 5 }}>
<ButtonToolbar className="d-flex align-items-end justify-content-between">
<Button className="m-1" onClick={() => setShowInstructions(true)}>
Instructions
</Button>
<Button className="m-1" target="_blank" href={"/editor?type=challenge&id=" + id}>
Open Editor
</Button>
Expand All @@ -162,10 +159,12 @@ const Challenge = () => {
<Button
className="m-1"
target="_blank"
href={"/solutions/challenge/" + id}
>
href={"/solutions/challenge/" + id}>
View Solutions
</Button>
<Button className="m-1" onClick={() => setShowInstructions(true)}>
Instructions
</Button>
</ButtonToolbar>
</Col>
)
Expand Down
1 change: 0 additions & 1 deletion server/controllers/ChallengeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ function formatChallenge(challengeData) {


exports.findSuggested = async (req, res) => {
console.log(req.user)
const username = req.user.username;
// see how many solutions the user has solved
const userSolutions = await db.Solution.findAll({
Expand Down

0 comments on commit 0d092ec

Please sign in to comment.