miskson 2 rokov pred
rodič
commit
d38e988425
2 zmenil súbory, kde vykonal 1 pridanie a 18 odobranie
  1. 0 14
      src/App.scss
  2. 1 4
      src/reducers/index.js

+ 0 - 14
src/App.scss

@@ -3,20 +3,6 @@
 @import "./styles/Playerbar.scss";
 @import "./styles/Forms.scss";
 
-$maxWidth: 1280;
-@mixin adaptive-font($pcSize, $mobSize) {
-  $additionSize: $pcSize - $mobSize;
-  $additionMobSize: $additionSize + $additionSize * 0.7;
-  //  for all screen width less than 767px(iPad)
-  @media (max-width: 767px) {
-    font-size: calc(#{$mobSize + px} + #{$additionMobSize} * ((100vw - 350px) / #{$maxWidth}));
-  }
-  // for all screen width more than 767px
-  @media (min-width: 767px) {
-    font-size: calc(#{$mobSize + px} + #{$additionSize} * (100vw / #{$maxWidth}));
-  }
-}
-
 body {
   background-color: #100d23;
   ::-webkit-scrollbar {

+ 1 - 4
src/reducers/index.js

@@ -41,10 +41,7 @@ export function playerReducer(state, { type, track, playlist, duration, currentT
     if (type === 'SET_DURATION') return { ...state, 'duration': duration }
     if (type === 'SET_VOLUME') return { ...state, 'volume': volume }
     if (type === 'SET_PLAYLIST')  return { ...state, 'playlist': playlist} 
-    if (type === 'SET_INDEX')  {
-        console.log('SEt_INDEX', playlistIndex)
-        return { ...state, 'playlistIndex': playlistIndex}
-    } 
+    if (type === 'SET_INDEX')   return { ...state, 'playlistIndex': playlistIndex} 
 
     if (type === 'SET_TRACK') {
         return {