Skip to content

Commit

Permalink
VKT(Frontend): Some frontend fixes [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Dec 31, 2024
1 parent a1d18ee commit 49c6c5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion frontend/packages/vkt/public/i18n/fi-FI/examiner.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"linkSentAt": "Lähetetty",
"linkExpiresAt": "Erääntyy",
"sendAuthLink": "Lähetä ilmoittautumislinkki",
"noAuthPossible": "Ei mahdollisuutta tunnistautua?",
"noAuthPossible": "Ei mahdollisuutta tunnistautua",
"paymentLinkModal": {
"title": "Suora maksulinkki",
"description": "Jos asiakkaalla ei ole mahdollisuutta käyttää vahvaa tunnistautumista, lähetä tämä suora maksulinkki."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Divider,
FormControlLabel,
FormHelperTextProps,
Link,
} from '@mui/material';
import { ChangeEvent, useEffect, useState } from 'react';
import {
Expand Down Expand Up @@ -327,7 +326,6 @@ const ExamAndEnrollmentDetailsSection = ({
editDisabled,
openGradeModal,
openEnrollmentHistoryModal,
getCommonTextFieldProps,
}: {
enrollment: ClerkEnrollmentAppointment;
isViewMode: boolean;
Expand All @@ -340,10 +338,6 @@ const ExamAndEnrollmentDetailsSection = ({
editDisabled: boolean;
openGradeModal: () => void;
openEnrollmentHistoryModal: () => void;
getCommonTextFieldProps: (
field: ClerkEnrollmentTextFieldEnum,
disabled: boolean,
) => ClerkEnrollmentTextFieldProps<ClerkEnrollmentAppointment>;
}) => {
const { grades } = useAppSelector(clerkEnrollmentAppointmentSelector);
const { t } = useExaminerTranslation({
Expand Down Expand Up @@ -398,16 +392,6 @@ const ExamAndEnrollmentDetailsSection = ({
{t('appointment.showHistory')}
</CustomButton>
</div>
<div className="margin-top-sm">
<H3>{t('header.previousEnrollment')}</H3>
</div>
<ClerkEnrollmentDetailsTextField
className="previous-enrollment"
{...getCommonTextFieldProps(
ClerkEnrollmentTextFieldEnum.PreviousEnrollment,
editDisabled,
)}
/>
</>
);
};
Expand Down Expand Up @@ -552,16 +536,17 @@ const EnrollmentStatus = ({
{t('appointment.sendAuthLink')}
</CustomButton>
</div>
<Text>
<Link
sx={{ fontWeight: 400, cursor: 'pointer' }}
<div className="columns flex-start">
<CustomButton
onClick={() => {
setPaymentLinkModalOpen(true);
}}
color={Color.Secondary}
variant={Variant.Text}
>
{t('appointment.noAuthPossible')}
</Link>
</Text>
</CustomButton>
</div>
</>
)}
</>
Expand Down Expand Up @@ -768,7 +753,6 @@ export const ClerkEnrollmentAppointmentDetailsFields = ({
editDisabled={editDisabled}
openGradeModal={() => setGradeModalOpen(true)}
openEnrollmentHistoryModal={() => setEnrollmentHistoryModalOpen(true)}
getCommonTextFieldProps={getCommonTextFieldProps}
/>
<Divider className="margin-top-lg" />
<PaymentDetailsSection enrollment={enrollment} />
Expand Down

0 comments on commit 49c6c5a

Please sign in to comment.