Skip to content

Commit

Permalink
Changed color on the submit button, and changed the text (#4101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lundis1 committed Aug 23, 2023
1 parent 5006431 commit a270e98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
5 changes: 0 additions & 5 deletions app/routes/users/components/UserConfirmation.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
max-width: 500px;
}

.infoText {
font-size: var(--font-size-sm);
line-height: 1.4em;
}

.programmeList {
list-style: disc;
list-style-position: inside;
Expand Down
22 changes: 11 additions & 11 deletions app/routes/users/components/UserConfirmation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Link } from 'react-router-dom';
import { Field } from 'redux-form';
import Card from 'app/components/Card';
import {
Form,
TextInput,
Expand All @@ -24,7 +25,7 @@ export type Props = {
handleSubmit: (arg0: (...args: Array<any>) => any) => void;
createUser: (token: string, data: Record<string, any>) => void;
router: any;
submitSucceeded: () => void;
submitSucceeded: boolean;
} & RouteChildrenProps<{ username: string }>;

const UserConfirmation = ({
Expand All @@ -50,14 +51,15 @@ const UserConfirmation = ({
>
Er du student?
</h3>
<p className={styles.infoText}>
For å kunne melde deg på arrangementer i Abakus må du verifisere
at du er student. Om du ikke har fått student-e-post enda, kan
du alltids verifisere kontoen din senere.
</p>
<Card severity="danger">
<span>
For å kunne melde deg på arrangementer i Abakus må du
verifisere at du er student.
</span>
</Card>
<Flex>
<Link to="/users/me/settings/student-confirmation/">
<Button>Verifiser student-e-post</Button>
<Button success>Verifiser studentstatus</Button>
</Link>
</Flex>
<Flex>
Expand All @@ -67,7 +69,7 @@ const UserConfirmation = ({
marginTop: '1em',
}}
>
Eller gå til hovedsiden
<Button>Eller gå til hovedsiden</Button>
</Link>
</Flex>
</div>
Expand Down Expand Up @@ -153,9 +155,7 @@ const UserConfirmation = ({
autocomplete="tel"
component={PhoneNumberInput.Field}
/>
<Button submit dark>
Registrer bruker
</Button>
<Button submit>Registrer bruker</Button>
</Form>
</div>
</Container>
Expand Down

0 comments on commit a270e98

Please sign in to comment.