import './App.scss'; import React, {useState,useEffect, useMemo, useRef} from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import {Router, Route, Link, Redirect, Switch} from 'react-router-dom'; import createHistory from "history/createBrowserHistory"; //import thunk from 'redux-thunk'; import {Provider, connect} from 'react-redux'; //import {createStore, combineReducers, applyMiddleware} from 'redux'; import { store } from './store/store'; import { actionAllPlaylists } from './store/promiseReducer'; import { actionFullSetPlaylist } from './store/playerReducer'; import {CLoginForm} from './components/authorization' import {CRegisterForm} from './components/authRegistration' import {CreatePlaylist} from './components/createPlaylist' import { Header } from './components/header'; import { UserPage, UsersPlaylistsAll } from './components/userPage'; import {PlaylistById} from './components/playlistById'; import { BrowserRouter } from "react-router-dom"; export let history = createHistory() store.subscribe(() => console.log(store.getState())); store.dispatch(actionAllPlaylists()); const Playlist = ({playlist: {id, user_id, name, photo, description} = {}}) =>
{description? description : '.' }