// 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 { StyleRulesCallback, WithStyles, withStyles, Card, CardContent, Button, Typography, Grid, Table, TableHead, TableRow, TableCell, TableBody, Tooltip, IconButton } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { User } from "~/models/user"; type CssRules = 'root' | 'gridItem' | 'title'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { width: '100%', overflow: 'auto' }, gridItem: { height: 45, marginBottom: 20 }, title: { marginBottom: theme.spacing.unit * 3, color: theme.palette.grey["600"] } }); export interface MyAccountPanelRootActionProps {} export interface MyAccountPanelRootDataProps { user?: User; } export const MY_ACCOUNT_FORM = 'myAccountForm'; type MyAccountPanelRootProps = InjectedFormProps & MyAccountPanelRootDataProps & WithStyles; export const MyAccountPanelRoot = withStyles(styles)( ({ classes, user }: MyAccountPanelRootProps) => { console.log(user); return User profile ;} );