-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lan Le
committed
Sep 4, 2024
1 parent
727e23b
commit fb2b1ee
Showing
8 changed files
with
91 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { HPLC_MS } from '../constants/action_type'; | ||
|
||
const selectWavelength = (payload) => ( | ||
{ | ||
type: HPLC_MS.UPDATE_UVVIS_WAVE_LENGTH, | ||
payload, | ||
} | ||
); | ||
|
||
export { | ||
selectWavelength, | ||
}; |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const LIST_UI_VIEWER_TYPE = { | ||
SPECTRUM: 'spectrum', | ||
SUB_SPECTRUM: 'sub spectrum', | ||
ANALYSIS: 'analysis', | ||
}; | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable prefer-object-spread, default-param-last */ | ||
import { HPLC_MS } from '../constants/action_type'; | ||
|
||
const initialState = { | ||
waveLength: null, | ||
}; | ||
|
||
const hplcmsReducer = (state = initialState, action) => { | ||
switch (action.type) { | ||
case HPLC_MS.UPDATE_UVVIS_WAVE_LENGTH: | ||
return Object.assign({}, state, { | ||
waveLength: action.payload, | ||
}); | ||
default: | ||
return state; | ||
} | ||
}; | ||
|
||
export default hplcmsReducer; |
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