Skip to content
Snippets Groups Projects
Commit 6891c0dc authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Minor fixes

parent 93092799
No related branches found
No related tags found
No related merge requests found
Pipeline #46188 passed with warnings
...@@ -192,7 +192,7 @@ const AddCompetition: React.FC = (props: any) => { ...@@ -192,7 +192,7 @@ const AddCompetition: React.FC = (props: any) => {
</Button> </Button>
{formik.errors.error && ( {formik.errors.error && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
{formik.errors.error} {formik.errors.error}
</Alert> </Alert>
)} )}
......
...@@ -102,7 +102,7 @@ const AddRegion: React.FC = (props: any) => { ...@@ -102,7 +102,7 @@ const AddRegion: React.FC = (props: any) => {
</FormControl> </FormControl>
{formik.errors.error && ( {formik.errors.error && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
{formik.errors.error} {formik.errors.error}
</Alert> </Alert>
)} )}
......
...@@ -224,7 +224,7 @@ const AddUser: React.FC = (props: any) => { ...@@ -224,7 +224,7 @@ const AddUser: React.FC = (props: any) => {
</Button> </Button>
{formik.errors.error && ( {formik.errors.error && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
{formik.errors.error} {formik.errors.error}
</Alert> </Alert>
)} )}
......
...@@ -322,7 +322,7 @@ const EditUser = ({ user }: UserIdProps) => { ...@@ -322,7 +322,7 @@ const EditUser = ({ user }: UserIdProps) => {
{formik.errors.error && ( {formik.errors.error && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
{formik.errors.error} {formik.errors.error}
</Alert> </Alert>
)} )}
......
...@@ -92,7 +92,7 @@ const AdminLogin: React.FC = () => { ...@@ -92,7 +92,7 @@ const AdminLogin: React.FC = () => {
</Button> </Button>
{errors.message && ( {errors.message && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
<Typography>Någonting gick fel. Kontrollera</Typography> <Typography>Någonting gick fel. Kontrollera</Typography>
<Typography>dina användaruppgifter och försök igen</Typography> <Typography>dina användaruppgifter och försök igen</Typography>
</Alert> </Alert>
......
...@@ -63,7 +63,7 @@ const CompetitionLogin: React.FC = () => { ...@@ -63,7 +63,7 @@ const CompetitionLogin: React.FC = () => {
</Button> </Button>
{errors && ( {errors && (
<Alert severity="error"> <Alert severity="error">
<AlertTitle>Error</AlertTitle> <AlertTitle>Något gick fel</AlertTitle>
<Typography>En tävling med den koden existerar ej.</Typography> <Typography>En tävling med den koden existerar ej.</Typography>
<Typography>Dubbelkolla koden och försök igen</Typography> <Typography>Dubbelkolla koden och försök igen</Typography>
</Alert> </Alert>
......
...@@ -37,7 +37,7 @@ const TextComponentEdit = ({ component }: ImageComponentProps) => { ...@@ -37,7 +37,7 @@ const TextComponentEdit = ({ component }: ImageComponentProps) => {
setTimerHandle( setTimerHandle(
window.setTimeout(async () => { window.setTimeout(async () => {
await axios.put(`/api/competitions/${competitionId}/slides/${activeSlideId}/components/${component.id}`, { await axios.put(`/api/competitions/${competitionId}/slides/${activeSlideId}/components/${component.id}`, {
alternative: newText, text: newText,
}) })
dispatch(getEditorCompetition(competitionId)) dispatch(getEditorCompetition(competitionId))
}, 250) }, 250)
......
...@@ -147,7 +147,7 @@ const JudgeScoreDisplay = ({ teamIndex, activeSlide }: ScoreDisplayProps) => { ...@@ -147,7 +147,7 @@ const JudgeScoreDisplay = ({ teamIndex, activeSlide }: ScoreDisplayProps) => {
</Card> </Card>
))} ))}
</div> </div>
Total poäng: {scores.reduce((a, b) => sumTwoScores(a, b), 0)} Totala poäng: {scores.reduce((a, b) => sumTwoScores(a, b), 0)}
</Typography> </Typography>
<AnswersDisplay> <AnswersDisplay>
<Answers> <Answers>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment