mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Rename ducks -> duck
This commit is contained in:
parent
e8d4af836b
commit
2ce15d4ab6
15 changed files with 16 additions and 16 deletions
|
|
@ -3,7 +3,7 @@ import { connect } from 'react-redux';
|
|||
import { Redirect } from 'react-router-dom';
|
||||
import { PageLayout, NamedLink, NamedRedirect } from '../../components';
|
||||
import { LoginForm, SignUpForm } from '../../containers';
|
||||
import { login } from '../../ducks/Auth.ducks';
|
||||
import { login } from '../../ducks/Auth.duck';
|
||||
|
||||
export const AuthenticationPageComponent = props => {
|
||||
const { location, tab, isAuthenticated, onLoginSubmit, onSignUpSubmit } = props;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { PropTypes } from 'react';
|
|||
import { connect } from 'react-redux';
|
||||
import { HeroSection, NamedRedirect, PageLayout } from '../../components';
|
||||
import { HeroSearchForm } from '../../containers';
|
||||
import { changeLocationFilter } from '../../ducks/LocationFilter.ducks';
|
||||
import { changeLocationFilter } from '../../ducks/LocationFilter.duck';
|
||||
import css from './LandingPage.css';
|
||||
|
||||
const createSubmitHandler = onLocationChanged => formData => {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { connect } from 'react-redux';
|
||||
import { addFlashNotification } from '../../ducks/FlashNotification.ducks';
|
||||
import { addFilter, callFetchListings, loadListings } from './SearchPage.ducks';
|
||||
import { addFlashNotification } from '../../ducks/FlashNotification.duck';
|
||||
import { addFilter, callFetchListings, loadListings } from './SearchPage.duck';
|
||||
import css from './SearchPage.css';
|
||||
import {
|
||||
FilterPanel,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import reducer, {
|
|||
initialState,
|
||||
loadListings,
|
||||
watchLoadListings,
|
||||
} from './SearchPage.ducks';
|
||||
} from './SearchPage.duck';
|
||||
|
||||
const { LatLng } = types;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { logout } from '../../ducks/Auth.ducks';
|
||||
import { logout } from '../../ducks/Auth.duck';
|
||||
import { NamedLink } from '../../components';
|
||||
|
||||
import css from './Topbar.css';
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
*/
|
||||
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
import SearchPage from './SearchPage/SearchPage.ducks';
|
||||
import SearchPage from './SearchPage/SearchPage.duck';
|
||||
|
||||
export { SearchPage };
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import reducer, {
|
|||
logoutError,
|
||||
callLogout,
|
||||
watchAuth,
|
||||
} from './Auth.ducks';
|
||||
} from './Auth.duck';
|
||||
|
||||
describe('Auth duck', () => {
|
||||
describe('reducer', () => {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import reducer, {
|
|||
REMOVE_FLASH_NOTIFICATION,
|
||||
addFlashNotification,
|
||||
removeFlashNotification,
|
||||
} from './FlashNotification.ducks';
|
||||
} from './FlashNotification.duck';
|
||||
|
||||
describe('FlashNotification', () => {
|
||||
describe('actions', () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import reducer, { CHANGE_LOCATION, changeLocationFilter } from './LocationFilter.ducks';
|
||||
import reducer, { CHANGE_LOCATION, changeLocationFilter } from './LocationFilter.duck';
|
||||
|
||||
describe('LocationFilterDucks', () => {
|
||||
describe('LocationFilterDuck', () => {
|
||||
describe('actions', () => {
|
||||
it('should create an action to change the filter', () => {
|
||||
const expectedAction = { type: CHANGE_LOCATION, payload: 'helsinki' };
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import { reducer as form } from 'redux-form';
|
||||
import Auth from './Auth.ducks';
|
||||
import FlashNotification from './FlashNotification.ducks';
|
||||
import LocationFilter from './LocationFilter.ducks';
|
||||
import Auth from './Auth.duck';
|
||||
import FlashNotification from './FlashNotification.duck';
|
||||
import LocationFilter from './LocationFilter.duck';
|
||||
|
||||
export { form, Auth, FlashNotification, LocationFilter };
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { createInstance } from 'sharetribe-sdk';
|
||||
|
||||
import { watchAuth } from './ducks/Auth.ducks';
|
||||
import { watchLoadListings } from './containers/SearchPage/SearchPage.ducks';
|
||||
import { watchAuth } from './ducks/Auth.duck';
|
||||
import { watchLoadListings } from './containers/SearchPage/SearchPage.duck';
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import fakeSdk from './util/fakeSDK';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue