import React, { FC } from 'react'; import { Trans } from '@lingui/macro'; import { Button, Field, FieldSet, Form, Icon, Input, Tooltip } from '@grafana/ui'; import { UserDTO } from 'app/types'; import config from 'app/core/config'; import { ProfileUpdateFields } from './types'; export interface Props { user: UserDTO | null; isSavingUser: boolean; updateProfile: (payload: ProfileUpdateFields) => void; } const { disableLoginForm } = config; export const UserProfileEditForm: FC = ({ user, isSavingUser, updateProfile }) => { const onSubmitProfileUpdate = (data: ProfileUpdateFields) => { updateProfile(data); }; return (
{({ register, errors }) => { return (
Edit profile}> } /> } /> } />
); }}
); }; export default UserProfileEditForm; const InputSuffix: FC = () => { return disableLoginForm ? ( ) : null; };