mirror of
https://github.com/strapi/strapi.git
synced 2025-09-30 19:05:53 +00:00
25 lines
325 B
JavaScript
25 lines
325 B
JavaScript
![]() |
import {
|
||
|
ON_CHANGE,
|
||
|
SUBMIT,
|
||
|
SUBMIT_SUCCEEDED,
|
||
|
} from './constants';
|
||
|
|
||
|
export function onChange({ target }) {
|
||
|
return {
|
||
|
type: ON_CHANGE,
|
||
|
value: target.value,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function submit() {
|
||
|
return {
|
||
|
type: SUBMIT,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function submitSucceeded() {
|
||
|
return {
|
||
|
type: SUBMIT_SUCCEEDED,
|
||
|
};
|
||
|
}
|