mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
15 lines
338 B
TypeScript
15 lines
338 B
TypeScript
import React, { FunctionComponent } from 'react';
|
|
|
|
import Editable from './base/editable';
|
|
|
|
interface Props {
|
|
onSubmit: () => void;
|
|
value: string;
|
|
}
|
|
|
|
const UnitTestEditable: FunctionComponent<Props> = ({ onSubmit, value }) => {
|
|
return <Editable singleClick onSubmit={onSubmit} value={value} />;
|
|
};
|
|
|
|
export default UnitTestEditable;
|