Splitting out helpers into separate files
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
import * as helpers from '../../helpers';
|
||||
import { generateGuid } from '../../util/helpers';
|
||||
|
||||
export function setWindowTitle(title = null, play_state = null) {
|
||||
return {
|
||||
@ -179,7 +179,7 @@ export function createNotification(data) {
|
||||
return {
|
||||
type: 'CREATE_NOTIFICATION',
|
||||
notification: {
|
||||
key: helpers.generateGuid(),
|
||||
key: generateGuid(),
|
||||
duration: 5,
|
||||
type: 'default',
|
||||
title: null,
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
|
||||
import ReactGA from 'react-ga';
|
||||
import * as helpers from '../../helpers';
|
||||
|
||||
const uiActions = require('./actions.js');
|
||||
const mopidyActions = require('../mopidy/actions.js');
|
||||
|
||||
const UIMiddleware = (function () {
|
||||
/**
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
|
||||
import * as helpers from '../../helpers';
|
||||
|
||||
export default function reducer(ui = {}, action) {
|
||||
switch (action.type) {
|
||||
case 'LAZY_LOADING':
|
||||
|
||||
Reference in New Issue
Block a user