diff --git a/packages/client/src/components/AppRouter.tsx b/packages/client/src/components/AppRouter.tsx index 7783aa4..5b256c4 100644 --- a/packages/client/src/components/AppRouter.tsx +++ b/packages/client/src/components/AppRouter.tsx @@ -2,7 +2,7 @@ import { Route, Routes } from 'react-router-dom'; import { PaymentsFormProps } from './types'; import { PaymentsForm, ComponentBase } from '.'; -const ApplicationRouter = ({ options, onSubmit, onChange }: PaymentsFormProps) => { +const ApplicationRouter = ({ options, onSubmit, onChange }: any) => { return ( } /> diff --git a/packages/client/src/components/PaymentsForm/PaymentsForm.tsx b/packages/client/src/components/PaymentsForm/PaymentsForm.tsx index f8b6238..3c82d39 100644 --- a/packages/client/src/components/PaymentsForm/PaymentsForm.tsx +++ b/packages/client/src/components/PaymentsForm/PaymentsForm.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { PaymentsFormProps } from '../types'; -const PaymentsForm = ({ options: { value, currency, countryCode, component }, onSubmit, onChange }: PaymentsFormProps) => { +const PaymentsForm = ({ options: { value, currency, countryCode, component }, onSubmit, onChange }: any) => { const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); onSubmit(); diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index 8b008f8..543a799 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -1,10 +1,10 @@ import { configureStore } from '@reduxjs/toolkit'; -import { reducers } from './app'; +import { userReducer, configurationReducer } from './app'; export const store = configureStore({ reducer: { - user: reducers.userReducer, - configuration: reducers.configurationReducer + user: userReducer, + configuration: configurationReducer } });