Upload media files and store in redux store
Summary:
This diff adds the media files into the redux store. In the redux store they are stored as the following {fbid: description}, where fbid and description are integer and string respectively.
Ignore the rows getting highlighted automatically, there seems to be a bug in the ManagedTable. Talked to Michel and we agreed to replace it.
Reviewed By: mweststrate
Differential Revision: D18708815
fbshipit-source-id: 0aaf1b672c230312203691538091a717d69fb5ad
This commit is contained in:
committed by
Facebook Github Bot
parent
ca53f35875
commit
111ee2079d
@@ -8,13 +8,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {Actions} from './';
|
import {Actions} from './';
|
||||||
|
export type MediaType = Array<{uri: string; description: string}>;
|
||||||
export type SupportFormV2State = {
|
export type SupportFormV2State = {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
commitHash: string;
|
commitHash: string;
|
||||||
appName: string;
|
appName: string;
|
||||||
screenshots?: {image: string; description: string}[];
|
screenshots?: MediaType;
|
||||||
videos?: {url: string; description: string}[];
|
videos?: MediaType;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type State = {
|
export type State = {
|
||||||
|
|||||||
Reference in New Issue
Block a user