import React, { FC } from 'react'; import { Button, Tooltip, Icon, Form, Input, Field, FieldSet } from '@grafana/ui'; import { UserDTO } from 'app/types'; import config from 'app/core/config'; import { ProfileUpdateFields } from 'app/core/utils/UserProvider'; export interface Props { user: UserDTO; 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 (
} /> } /> } />
); }}
); }; export default UserProfileEditForm; const InputSuffix: FC = () => { return disableLoginForm ? ( ) : null; };