added side-panel-reducer file, minor code cleanup Arvados-DCO-1.1-Signed-off-by:...
[arvados.git] / src / views-components / sharing-dialog / sharing-invitation-form.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { reduxForm } from 'redux-form';
6 import { connect } from 'react-redux';
7 import { compose } from 'redux';
8 import SharingInvitationFormComponent from './sharing-invitation-form-component';
9 import { SHARING_INVITATION_FORM_NAME } from 'store/sharing-dialog/sharing-dialog-types';
10 import { PermissionLevel } from 'models/permission';
11
12 export const SharingInvitationForm = compose(
13     connect(() => ({
14         initialValues: {
15             permissions: PermissionLevel.CAN_READ,
16             invitedPeople: [],
17         }
18     })),
19     reduxForm({ form: SHARING_INVITATION_FORM_NAME })
20 )(SharingInvitationFormComponent);