mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 13:49:43 +02:00
feat: Prefill label creation with search term (#307)
This commit is contained in:
parent
2ebb24a0ff
commit
694fa17bdf
2 changed files with 4 additions and 3 deletions
|
@ -10,11 +10,11 @@ import Editor from './Editor';
|
|||
|
||||
import styles from './AddStep.module.scss';
|
||||
|
||||
const AddStep = React.memo(({ onCreate, onBack }) => {
|
||||
const AddStep = React.memo(({ onCreate, onBack, initialValue }) => {
|
||||
const [t] = useTranslation();
|
||||
|
||||
const [data, handleFieldChange] = useForm(() => ({
|
||||
name: '',
|
||||
name: initialValue,
|
||||
color: LabelColors[0],
|
||||
}));
|
||||
|
||||
|
@ -48,6 +48,7 @@ const AddStep = React.memo(({ onCreate, onBack }) => {
|
|||
AddStep.propTypes = {
|
||||
onCreate: PropTypes.func.isRequired,
|
||||
onBack: PropTypes.func.isRequired,
|
||||
initialValue: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export default AddStep;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue