diff --git a/src/components/LeftSidebar/LeftSidebar.js b/src/components/LeftSidebar/LeftSidebar.js index d2b29bfe..2c65b5e1 100644 --- a/src/components/LeftSidebar/LeftSidebar.js +++ b/src/components/LeftSidebar/LeftSidebar.js @@ -30,7 +30,7 @@ const LeftSidebar = () => { { key: 'references', name: data.references.heading }, { key: 'extras', name: data.extras.heading }, ]; - const [currentTab, setCurrentTab] = useState(tabs[0].key); + const [currentTab, setCurrentTab] = useState(tabs[6].key); const onChange = (key, value) => { dispatch({ type: 'on_input', diff --git a/src/components/LeftSidebar/tabs/Skills.js b/src/components/LeftSidebar/tabs/Skills.js index 06d207aa..98d123d4 100644 --- a/src/components/LeftSidebar/tabs/Skills.js +++ b/src/components/LeftSidebar/tabs/Skills.js @@ -3,7 +3,7 @@ import React, { useState, useContext } from 'react'; import AppContext from '../../../context/AppContext'; import Checkbox from '../../../shared/Checkbox'; import TextField from '../../../shared/TextField'; -import { addItem, deleteItem } from '../../../utils'; +import { addItem, deleteItem, moveItemUp, moveItemDown } from '../../../utils'; import ItemHeading from '../../../shared/ItemHeading'; const SkillsTab = ({ data, onChange }) => { @@ -92,18 +92,38 @@ const Item = ({ item, index, onChange, dispatch }) => { const identifier = `data.skills.items[${index}]`; return ( -
-
+
+
onChange(identifier, v)} />
+ + + +