Skip to content

Commit

Permalink
Added card component, and changed the link to a button
Browse files Browse the repository at this point in the history
  • Loading branch information
Lundis1 committed Aug 22, 2023
1 parent fc868aa commit 53c5e2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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
13 changes: 8 additions & 5 deletions app/routes/users/components/UserConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { validPassword } from '../utils';
import PasswordField from './PasswordField';
import styles from './UserConfirmation.css';
import type { RouteChildrenProps } from 'react-router';
import Card from 'app/components/Card';

export type Props = {
token: string;
Expand Down Expand Up @@ -50,10 +51,12 @@ 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.
</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 success>Verifiser studentstatus</Button>
Expand All @@ -66,7 +69,7 @@ const UserConfirmation = ({
marginTop: '1em',
}}
>
Eller gå til hovedsiden
<Button>Eller gå til hovedsiden</Button>
</Link>
</Flex>
</div>
Expand Down

0 comments on commit 53c5e2d

Please sign in to comment.