Skip to content

Commit

Permalink
Merge pull request #301 from labzero/jeffrey/mobile
Browse files Browse the repository at this point in the history
Mobile fixes (button color, overlaytrigger)
  • Loading branch information
JeffreyATW authored May 5, 2023
2 parents bc74409 + f8fc883 commit 19c899e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = {
'prefer-destructuring': 0,

// Allow js files to use jsx syntax, too
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.tsx'] }],

// Automatically convert pure class to function by
// babel-plugin-transform-react-pure-class-to-function
Expand Down
1 change: 0 additions & 1 deletion src/components/TeamForm/TeamForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ class TeamForm extends Component {
<Form.Group className="mb-3" controlId="teamForm-vote-duration">
<Form.Label>Sort duration</Form.Label>
<OverlayTrigger
trigger="focus"
placement="right"
overlay={popoverRight}
>
Expand Down
8 changes: 4 additions & 4 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ const pe = new PrettyError();
pe.skipNodeFiles();
pe.skipPackage('express');

app.use(Honeybadger.errorHandler); // Use *after* all other app middleware.

// eslint-disable-next-line no-unused-vars
const errorHandler: ErrorRequestHandler = (err, req, res, next) => {
console.error(pe.render(err));
Expand All @@ -479,11 +481,9 @@ const errorHandler: ErrorRequestHandler = (err, req, res, next) => {
},
});
}
next(err);
}
app.use(errorHandler);
};

app.use(Honeybadger.errorHandler); // Use *after* all other app middleware.
app.use(errorHandler);

//
// Launch the server
Expand Down
5 changes: 5 additions & 0 deletions src/styles/globalCss.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ label {
font-weight: bold;
}

button,
input {
color: inherit;
}

.geosuggest__input {
box-shadow: none;
}
Expand Down

0 comments on commit 19c899e

Please sign in to comment.