Skip to content

Commit

Permalink
Code style improvements again
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Mar 7, 2024
1 parent bca8286 commit c37bcb6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
17 changes: 11 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ name: Bug report
about: Create a report to help us improve
---

**Description**
### Description

<!-- A clear and concise description of what the issue is about. What are you trying to do? -->

**Expected behaviour**
### Expected behaviour

<!-- What did you expect to happen? -->

**What is happening instead?**
### What is happening instead?

<!-- Please, give full error messages and/or log. -->

**Additional context**
### Additional context

<!-- Add any other context about the problem here. If applicable, add screenshots to help explain your problem. -->

**How to reproduce?**
### How to reproduce?
<!-- Tell us how to reproduce this issue. How can someone who is starting from scratch reproduce this behaviour as minimally as possible? -->

**Files**
### Files

<!-- A list of relevant files for this issue. Large files can be uploaded one-by-one or in a tarball/zipfile. -->
12 changes: 8 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Feature request
about: Suggest an idea for this project
---

**Is your feature request related to a problem? Please describe.**
### Is your feature request related to a problem? Please describe.

<!-- Add a clear and concise description of what the problem is. E.g. *I'm always frustrated when [...]* -->

**Describe the solution you'd like**
### Describe the solution you'd like

<!-- Add a clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
### Describe alternatives you've considered

<!-- Add a clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
### Additional context

<!-- Add any other context or screenshots about the feature request here. -->
4 changes: 2 additions & 2 deletions frontend/src/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const App = () => {
const [currentLocale, setCurrentLocale] = useState(fallback);

const setCurrentLocaleToState = async () => {
void setCurrentLocale(await getCurrentLocale(i18n));
setCurrentLocale(await getCurrentLocale(i18n));
};

const getCurrentTitle = useCallback(() => {
Expand Down Expand Up @@ -98,7 +98,7 @@ const App = () => {
}, [getStationAttributes]);

const handleSwitchLocale = (locale: string) => {
setUserLocale(i18n, locale);
void setUserLocale(i18n, locale);
};

const locales = Object.entries(resources).reduce((acc, [key, value]) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/src/components/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Code = (props: CodeProps) => {
<div
className="opacity-60 hover:opacity-100 transition-all cursor-pointer"
onClick={() => {
handleCopy(children);
void handleCopy(children);
}}
>
<img
Expand Down

0 comments on commit c37bcb6

Please sign in to comment.