(subject: T, update: (value: T) => void, option
return (
field: P,
extractor: (...args: TArgs) => T[P] = ((event: DOMEvent) => event.target.value as unknown as T[P]) as any
- ) => ({
+ ): any => ({
[property]: subject[field],
[event]: (...args: TArgs) => update({
...subject,
diff --git a/src/forms/Internship.tsx b/src/forms/internship.tsx
similarity index 71%
rename from src/forms/Internship.tsx
rename to src/forms/internship.tsx
index 967b1b6..abd58f4 100644
--- a/src/forms/Internship.tsx
+++ b/src/forms/internship.tsx
@@ -1,18 +1,5 @@
-import React, { HTMLProps, useMemo, useState } from "react";
-import {
- FormControl,
- Grid,
- Input,
- InputLabel,
- Typography,
- FormHelperText,
- TextField,
- FormGroup,
- FormControlLabel,
- Checkbox,
- FormLabel,
- Button
-} from "@material-ui/core";
+import React, { HTMLProps, useEffect, useMemo, useState } from "react";
+import { Button, FormControl, FormHelperText, Grid, Input, InputLabel, TextField, Typography } from "@material-ui/core";
import { KeyboardDatePicker as DatePicker } from "@material-ui/pickers";
import { CompanyForm } from "@/forms/company";
import { StudentForm } from "@/forms/student";
@@ -24,6 +11,14 @@ import { computeWorkingHours } from "@/utils/date";
import { Autocomplete } from "@material-ui/lab";
import { formFieldProps } from "@/forms/helpers";
import { emptyInternship } from "@/provider/dummy/internship";
+import { InternshipProposalActions, useDispatch } from "@/state/actions";
+import { useTranslation } from "react-i18next";
+import { useSelector } from "react-redux";
+import { AppState } from "@/state/reducer";
+import { useHistory } from "react-router-dom";
+import { route } from "@/routing";
+import { useProxyState } from "@/hooks";
+import { getInternshipProposal } from "@/state/reducer/proposal";
export type InternshipFormProps = {}
@@ -62,25 +57,26 @@ const InternshipProgramForm = ({ internship, onChange }: InternshipFormSectionPr
{ internship.type === InternshipType.Other && }
-
-
- Realizowane punkty programu praktyk (minimum 3)
- { course.possibleProgramEntries.map(entry => {
- return (
- }
- />
- )
- }) }
-
-
+ {/**/}
+ {/* */}
+ {/* Realizowane punkty programu praktyk (minimum 3)*/}
+ {/* { course.possibleProgramEntries.map(entry => {*/}
+ {/* return (*/}
+ {/* }*/}
+ {/* />*/}
+ {/* )*/}
+ {/* }) }*/}
+ {/* */}
+ {/**/}