Daten von 118. in mocks geholt
This commit is contained in:
@@ -2,18 +2,21 @@
|
||||
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
|
||||
|
||||
interface LoopChartTypeState {
|
||||
chartTitle: string;
|
||||
chartTitle: "Messkurve" | "Meldungen";
|
||||
}
|
||||
|
||||
const initialState: LoopChartTypeState = {
|
||||
chartTitle: "Schleifenmessung", // Standardwert
|
||||
chartTitle: "Messkurve", // Standard: Messkurve
|
||||
};
|
||||
|
||||
const loopChartTypeSlice = createSlice({
|
||||
name: "loopChartType",
|
||||
initialState,
|
||||
reducers: {
|
||||
setChartTitle: (state, action: PayloadAction<string>) => {
|
||||
setChartTitle: (
|
||||
state,
|
||||
action: PayloadAction<"Messkurve" | "Meldungen">
|
||||
) => {
|
||||
state.chartTitle = action.payload;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user