Skip to content
Snippets Groups Projects

Add monospace font to competition codes, clean up

Merged Sebastian Karlsson requested to merge 137-show-competition-codes into dev
1 file
+ 11
3
Compare changes
  • Side-by-side
  • Inline
@@ -224,8 +224,16 @@ const CompetitionManager: React.FC = (props: any) => {
dispatch(getCompetitions())
}
const doSomething = () => {
console.log('lol')
const refreshCode = async (code: Code) => {
await axios
.put(`/api/competitions/${activeId}/codes/${code.id}`)
.then(() => {
getCodes()
dispatch(getCompetitions())
})
.catch(({ response }) => {
console.warn(response.data)
})
}
return (
@@ -349,7 +357,7 @@ const CompetitionManager: React.FC = (props: any) => {
<Button
margin-right="0px"
onClick={() => {
doSomething()
refreshCode(code)
}}
>
<RefreshIcon fontSize="small" />
Loading