Merge branch 'develop' into feature/TV-565-signal-view

This commit is contained in:
Daniel Appelgren
2021-11-19 10:30:17 +01:00
12 changed files with 101 additions and 115 deletions
@@ -1,11 +1,5 @@
import { SignalResponse } from './api/signal.response.model';
export interface Signal {
type: 'arbete' | 'utbildning';
omfattning: 'heltid' | 'deltid';
percent: number;
startDate: Date;
}
import { Signal } from '../../pages/deltagare/pages/deltagare-details/pages/report-forms/signal-form/signal-form.model';
export function mapResponseToSignal(data: SignalResponse): Signal {
const { typ, startdatum, omfattning, omfattning_procent } = data;