-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #584 from Opetushallitus/feature/OPHYKIKEH-305
SHARED:YKI(Frontend): OPHYKIKEH-305 Tutkintolistaustaulukon Toiminnot-sarakkeen tekstit mobiilissa
- Loading branch information
Showing
12 changed files
with
152 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"yki:tslint": "yarn g:tsc --pretty --noEmit" | ||
}, | ||
"dependencies": { | ||
"shared": "npm:@opetushallitus/[email protected].29" | ||
"shared": "npm:@opetushallitus/[email protected].30" | ||
}, | ||
"devDependencies": { | ||
"multer": "^1.4.5-lts.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
...d/packages/yki/src/components/registration/examSession/PublicExamSessionListingHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import { TableCell, TableHead, TableRow } from '@mui/material'; | ||
import { useWindowProperties } from 'shared/hooks'; | ||
|
||
import { useCommonTranslation } from 'configs/i18n'; | ||
|
||
export const PublicExamSessionListingHeader = () => { | ||
const translateCommon = useCommonTranslation(); | ||
const { isPhone } = useWindowProperties(); | ||
|
||
return ( | ||
<TableHead className="heading-text"> | ||
{!isPhone && ( | ||
<TableRow> | ||
<TableCell>{translateCommon('examSession')}</TableCell> | ||
<TableCell>{translateCommon('examDate')}</TableCell> | ||
<TableCell>{translateCommon('institution')}</TableCell> | ||
<TableCell>{translateCommon('registrationPeriod')}</TableCell> | ||
<TableCell>{translateCommon('price')}</TableCell> | ||
<TableCell>{translateCommon('placesAvailable')}</TableCell> | ||
<TableCell>{translateCommon('actions')}</TableCell> | ||
</TableRow> | ||
)} | ||
<TableHead className="heading-text public-exam-session-listing__header"> | ||
<TableRow> | ||
<TableCell>{translateCommon('examSession')}</TableCell> | ||
<TableCell>{translateCommon('examDate')}</TableCell> | ||
<TableCell>{translateCommon('institution')}</TableCell> | ||
<TableCell>{translateCommon('registrationPeriod')}</TableCell> | ||
<TableCell>{translateCommon('price')}</TableCell> | ||
<TableCell>{translateCommon('placesAvailable')}</TableCell> | ||
<TableCell>{translateCommon('actions')}</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
frontend/packages/yki/src/styles/components/registration/_exam-session-listing.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.public-exam-session-listing { | ||
@include phone { | ||
thead { | ||
display: none; | ||
} | ||
|
||
tr { | ||
border-bottom: 1px solid $color-divider; | ||
display: flex; | ||
padding: 1.6rem; | ||
} | ||
|
||
td { | ||
border: 0; | ||
display: block; | ||
padding: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.