Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

fix: #CLIN-422 remove tab management from redux-saga #810

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions client/src/actions/router.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
import * as actions from './type';

export const navigate = (location) => ({
type: actions.ROUTER_NAVIGATION_REQUESTED,
payload: {
location,
},
type: actions.ROUTER_NAVIGATION_REQUESTED,
});

export const navigateToPatientScreen = (uid, { tab, reload, openedPrescriptionId } = {}) => ({
type: actions.NAVIGATION_PATIENT_SCREEN_REQUESTED,
export const navigateToPatientScreen = (uid, { openedPrescriptionId, reload, tab } = {}) => ({
payload: {
uid,
tab,
reload,
openedPrescriptionId,
reload,
tab,
uid,
},
type: actions.NAVIGATION_PATIENT_SCREEN_REQUESTED,
});

export const navigateToPatientVariantScreen = (uid, tab = null) => ({
type: actions.NAVIGATION_PATIENT_VARIANT_SCREEN_REQUESTED,
payload: {
uid,
tab,
uid,
},
type: actions.NAVIGATION_PATIENT_VARIANT_SCREEN_REQUESTED,
});

export const navigateToVariantDetailsScreen = (uid, tab = null) => ({
type: actions.NAVIGATION_VARIANT_DETAILS_SCREEN_REQUESTED,
payload: {
uid,
tab,
uid,
},
});

export const navigateToPatientSearchScreen = (reload = true) => ({
type: actions.NAVIGATION_PATIENT_SEARCH_SCREEN_REQUESTED,
payload: {
reload,
},
type: actions.NAVIGATION_VARIANT_DETAILS_SCREEN_REQUESTED,
});

export const navigateToAccessDeniedScreen = () => ({
Expand Down
15 changes: 10 additions & 5 deletions client/src/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ export const getUserIdentity = () => ({
type: actions.USER_IDENTITY_REQUESTED,
});

export const updateUserProfile = (id, defaultStatement, patientTableConfig, variantTableConfig) => ({
type: actions.USER_PROFILE_UPDATE_REQUESTED,
export const updateUserProfile = (
id,
defaultStatement,
patientTableConfig,
variantTableConfig,
) => ({
payload: {
id,
defaultStatement,
id,
patientTableConfig,
variantTableConfig,
},
type: actions.USER_PROFILE_UPDATE_REQUESTED,
});

export const updateUserColumns = (columns) => ({
type: actions.USER_PROFILE_UPDATE_COLUMNS,
payload: {
columns,
},
type: actions.USER_PROFILE_UPDATE_COLUMNS,
});

export const updateUserColumnsOrder = (columnsOrder) => ({
type: actions.USER_PROFILE_UPDATE_COLUMNS_ORDER,
payload: {
columnsOrder,
},
type: actions.USER_PROFILE_UPDATE_COLUMNS_ORDER,
});

export const updateUserColumnsReset = () => ({
Expand Down
69 changes: 0 additions & 69 deletions client/src/components/Navigation.jsx

This file was deleted.

Loading