mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import React, { SFC } from 'react';
|
|
|
|
interface Props {
|
|
orgName: string;
|
|
onSubmit: () => void;
|
|
onOrgNameChange: (orgName: string) => void;
|
|
}
|
|
|
|
const OrgProfile: SFC<Props> = ({ onSubmit, onOrgNameChange, orgName }) => {
|
|
return (
|
|
<div>
|
|
<h3 className="page-sub-heading">Organization profile</h3>
|
|
<form name="orgForm" className="gf-form-group" onSubmit={onSubmit}>
|
|
<div className="gf-form-inline">
|
|
<div className="gf-form max-width-28">
|
|
<span className="gf-form-label">Organization name</span>
|
|
<input
|
|
className="gf-form-input"
|
|
type="text"
|
|
onChange={event => {
|
|
onOrgNameChange(event.target.value);
|
|
}}
|
|
value={orgName}
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div className="gf-form-button-row">
|
|
<button type="submit" className="btn btn-success">
|
|
Save
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default OrgProfile;
|