-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improved styling and layout on recruitmentapplicationformpage #1614
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Icon } from '@iconify/react'; | ||
import { useEffect, useState } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { useNavigate, useParams } from 'react-router-dom'; | ||
import { toast } from 'react-toastify'; | ||
import { Button, Link, Page, SamfundetLogoSpinner } from '~/Components'; | ||
import { Button, Link, Page, SamfundetLogoSpinner, ToolTip } from '~/Components'; | ||
import { Text } from '~/Components/Text/Text'; | ||
import { SamfForm } from '~/Forms/SamfForm'; | ||
import { SamfFormField } from '~/Forms/SamfFormField'; | ||
|
@@ -157,8 +158,6 @@ export function RecruitmentApplicationFormPage() { | |
</Link> | ||
</h2> | ||
<p className={styles.text}>{dbT(recruitmentPosition, 'long_description')}</p> | ||
<h2 className={styles.sub_header}>{t(KEY.recruitment_applyfor)}</h2> | ||
<p className={styles.text}>{t(KEY.recruitment_applyforhelp)}</p> | ||
</div> | ||
<div className={styles.other_positions}> | ||
<h2 className={styles.sub_header}> | ||
|
@@ -207,7 +206,12 @@ export function RecruitmentApplicationFormPage() { | |
submitText={submitText} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kan du erstatte Samf-form på denne siden med React hook form? Står ikke i issuet, men greit å gjøre siden det er så lite som skal gjøres her. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blir veldig likt hvordan Simen har gjort det i denne PR-en: #1568 Men i din PR her skal det gjøres post/put request når søkeren trykker på knappen selvfølgelig. |
||
devMode={false} | ||
> | ||
<h2 className={styles.label}>{t(KEY.recruitment_application)}:</h2> | ||
<div className={styles.form_header}> | ||
<h2 className={styles.label}>{t(KEY.recruitment_application)}</h2> | ||
<ToolTip value={t(KEY.recruitment_applyforhelp)}> | ||
<Icon icon="mingcute:question-fill" width="1.2em" height="1.2em" /> | ||
</ToolTip> | ||
</div> | ||
<SamfFormField field="application_text" type="text_long" />{' '} | ||
</SamfForm> | ||
) : ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hadde vært nice om om div fra og med linje 162 til og med linje 187 rendrer under søknadsformet hvis man er på mobil. Altså, under "Send søkand" knappe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glemte å si det når jeg forklarte issuet muntlig. For å conditionaly rendre den nevnte diven kan du bruke useMobile hooken vår. Søk "isDesktop" eller "isMobile" i hele prosjekte, så finner du sikkert plasser hvor det er brukt.
Formålet er at man skal kunne skrive en søknad og trykke "Send søknad" uten å måtte scrolle på mobil.