Skip to content

Commit

Permalink
Merge pull request #196 from hampster2018/Move-Add-Cord
Browse files Browse the repository at this point in the history
Move add cord - 0 Index
  • Loading branch information
COChara authored Sep 16, 2023
2 parents 1f64264 + 20370c6 commit 450be14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions src/pages/manager/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
ChordContainer,
PageContainer,
TopSectionContainer,
Column,
} from '../manager/manager.styled';
import { DeviceNavigationBar } from './components/DeviceNavigationBar';
import ManagersDeviceOverlay from './components/ManagersDeviceOverlay';
Expand Down Expand Up @@ -76,15 +77,16 @@ const Manager = (): ReactElement => {
<PressCommit />
</Table>
<PageContainer>
<ChordMapColumn />
<ChordContainer>
<div />
<div />
<AddHeaders />
<AddChordMap />
</ChordContainer>
<Column>
<ChordContainer>
<div />
<div />
<AddHeaders />
<AddChordMap />
</ChordContainer>
<ChordMapColumn />
</Column>
<div className="h-1 w-6/12 mt-16 bg-[#3A5A42] rounded mb-10" />

<Terminal />
</PageContainer>
</TopSectionContainer>
Expand All @@ -93,4 +95,4 @@ const Manager = (): ReactElement => {
);
};

export default Manager;
export default Manager;
2 changes: 1 addition & 1 deletion src/store/managerStorageStore/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const managerStorageStoreActions: ManagerStoreActions = {
state.downloadedChords.chords = payload;
}),
setSingleDownloadedChord: action((state, payload) => {
state.downloadedChords.chords.push(payload);
state.downloadedChords.chords.unshift(payload);
}),
deleteDownloadedChordsData: action((state, payload) => {
const tempV = deleteChordInManager(state, payload);
Expand Down

0 comments on commit 450be14

Please sign in to comment.