diff --git a/dist.rar b/dist.rar index 5b49802..9f93505 100644 Binary files a/dist.rar and b/dist.rar differ diff --git a/link wallet.zip b/link wallet.zip new file mode 100644 index 0000000..8dfa80b Binary files /dev/null and b/link wallet.zip differ diff --git a/src/App.css b/src/App.css index b9d355d..e69de29 100644 --- a/src/App.css +++ b/src/App.css @@ -1,42 +0,0 @@ -#root { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -.logo { - height: 6em; - padding: 1.5em; - will-change: filter; - transition: filter 300ms; -} -.logo:hover { - filter: drop-shadow(0 0 2em #646cffaa); -} -.logo.react:hover { - filter: drop-shadow(0 0 2em #61dafbaa); -} - -@keyframes logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -@media (prefers-reduced-motion: no-preference) { - a:nth-of-type(2) .logo { - animation: logo-spin infinite 20s linear; - } -} - -.card { - padding: 2em; -} - -.read-the-docs { - color: #888; -} diff --git a/src/App.jsx b/src/App.jsx index befa8df..7c11e4c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -12,15 +12,39 @@ function App() { const [socialList, setSocialList] = React.useState([]); const [codingProfileList, setCodingProfileList] = React.useState([]); - const commbinedState = {socialList, protfolioList, blogList, otherList, codingProfileList} - const setCombinedState = {setSocialList, setProtfolioList, setBlogList, setOtherList, setCodingProfileList} + const commbinedState = { + socialList, + protfolioList, + blogList, + otherList, + codingProfileList, + }; + const setCombinedState = { + setSocialList, + setProtfolioList, + setBlogList, + setOtherList, + setCodingProfileList, + }; return ( -
-

Links Wallet

- - {addWindowBtn? : null} - {!addWindowBtn? : null} +
+

+ Links Wallet +

+ {!addWindowBtn ? ( + + ) : ( + + )} + + {!addWindowBtn ? : null}
); } diff --git a/src/components/AddWindow.jsx b/src/components/AddWindow.jsx index eb5545b..74b9236 100644 --- a/src/components/AddWindow.jsx +++ b/src/components/AddWindow.jsx @@ -17,10 +17,6 @@ const AddWindow = ({setCombinedState, setActive}) => { const handleButtonClick = () => { - if (name === "" || url === "" || cat === "") { - alert("Please fill all the fields"); - return; - } const link = { name, url, type: cat }; const existingLinks = JSON.parse(localStorage.getItem(cat) || "[]"); @@ -50,7 +46,8 @@ const AddWindow = ({setCombinedState, setActive}) => { }; return ( -
+
+
@@ -98,9 +95,18 @@ const AddWindow = ({setCombinedState, setActive}) => { > Create +
+ +
); }; diff --git a/src/components/List.jsx b/src/components/List.jsx index 20d5aa2..004612d 100644 --- a/src/components/List.jsx +++ b/src/components/List.jsx @@ -60,7 +60,7 @@ const List = ({ list, title, setCombinedState }) => { }; return ( -
+

{title}

{list.map((user, index) => ( diff --git a/src/components/ListItem.jsx b/src/components/ListItem.jsx index fe5b802..7ba0475 100644 --- a/src/components/ListItem.jsx +++ b/src/components/ListItem.jsx @@ -58,7 +58,7 @@ const ListItem = ({ combinedState, setCombinedState }) => {
-
+
{/* social */} @@ -73,7 +73,7 @@ const ListItem = ({ combinedState, setCombinedState }) => { {/* social */}
-
+
{/* social */}