Skip to content

Commit 7279748

Browse files
committed
modify main render
1 parent 764a5cc commit 7279748

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ const renderModalContent = (elements, state) => {
155155
elements.modalReadMoreButton.href = postLink
156156
}
157157

158-
const render = (elements, i18n, state) => (path, value) => {
159-
switch (path) {
158+
const render = (elements, i18n, state, onChangePath, onChangeValue) => {
159+
switch (onChangePath) {
160160
case 'form.processState':
161-
handleProcessState(elements, i18n, value)
161+
handleProcessState(elements, i18n, onChangeValue)
162162
break
163163
case 'form.errorKey':
164-
renderErrors(elements, i18n, value)
164+
renderErrors(elements, i18n, onChangeValue)
165165
break
166166
case 'feeds':
167167
renderFeeds(elements, i18n, state)

0 commit comments

Comments
 (0)