Update default plugin selection when selected group changes
Summary: This diff updates default plugin selected when group selection gets updated. This diff also makes sure that group selection is persisted when swtiching between different tabs. Reviewed By: mweststrate Differential Revision: D19578748 fbshipit-source-id: 6f401248fe32441e30cb5acbb9251e206866984a
This commit is contained in:
committed by
Facebook Github Bot
parent
0ffd080141
commit
e9dba5007a
@@ -15,6 +15,12 @@ type MediaObject = SubmediaType & {
|
|||||||
description: string;
|
description: string;
|
||||||
path: string;
|
path: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type Groups =
|
||||||
|
| 'Litho Support'
|
||||||
|
| 'GraphQL Android Support'
|
||||||
|
| 'GraphQL iOS Support';
|
||||||
|
|
||||||
export type MediaType = Array<MediaObject>;
|
export type MediaType = Array<MediaObject>;
|
||||||
export type SupportFormV2State = {
|
export type SupportFormV2State = {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -22,6 +28,7 @@ export type SupportFormV2State = {
|
|||||||
commitHash: string;
|
commitHash: string;
|
||||||
screenshots?: MediaType;
|
screenshots?: MediaType;
|
||||||
videos?: MediaType;
|
videos?: MediaType;
|
||||||
|
selectedGroup: Groups;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SupportFormRequestDetailsState = SupportFormV2State & {
|
export type SupportFormRequestDetailsState = SupportFormV2State & {
|
||||||
@@ -64,6 +71,7 @@ export const initialState: () => State = () => ({
|
|||||||
].join('\n'),
|
].join('\n'),
|
||||||
commitHash: '',
|
commitHash: '',
|
||||||
appName: '',
|
appName: '',
|
||||||
|
selectedGroup: 'Litho Support',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
export default function reducer(
|
export default function reducer(
|
||||||
|
|||||||
Reference in New Issue
Block a user