insomnia/packages/insomnia-app/app/ui/components/unit-test-editable.tsx

13 lines
315 B
TypeScript
Raw Normal View History

import React, { FunctionComponent } from 'react';
2021-07-22 23:04:56 +00:00
import { Editable } from './base/editable';
interface Props {
onSubmit: () => void;
value: string;
}
export const UnitTestEditable: FunctionComponent<Props> = ({ onSubmit, value }) => {
return <Editable singleClick onSubmit={onSubmit} value={value} />;
};