// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import { Field, InjectedFormProps } from "redux-form"; import { TextField } from "~/components/text-field/text-field"; import { NativeSelectField } from "~/components/select-field/select-field"; import { StyleRulesCallback, WithStyles, withStyles, Card, CardContent, Button, Typography, Grid, InputLabel } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { User } from "~/models/user"; import { require } from "~/validators/require"; type CssRules = 'root' | 'gridItem' | 'label' | 'title' | 'actions'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { width: '100%', overflow: 'auto' }, gridItem: { height: 45, marginBottom: 20 }, label: { fontSize: '0.675rem' }, title: { marginBottom: theme.spacing.unit * 3, color: theme.palette.grey["600"] }, actions: { display: 'flex', justifyContent: 'flex-end' } }); export interface MyAccountPanelRootActionProps {} export interface MyAccountPanelRootDataProps { isPristine: boolean; isValid: boolean; initialValues?: User; } export const MY_ACCOUNT_FORM = 'myAccountForm'; const FILES_FIELD_VALIDATION = [require]; type MyAccountPanelRootProps = InjectedFormProps & MyAccountPanelRootDataProps & WithStyles; export const MyAccountPanelRoot = withStyles(styles)( ({ classes, isValid, handleSubmit, reset, isPristine, invalid, submitting }: MyAccountPanelRootProps) => { return User profile
Organization
;} );