diff --git a/components/Account.jsx b/components/Account.jsx index e18c3ec2..d00b1796 100644 --- a/components/Account.jsx +++ b/components/Account.jsx @@ -1,25 +1,26 @@ -/* eslint-disable max-len */ -/* eslint-disable */ -import React, { useState, useEffect, useContext, useCallback } from "react"; -import { useMoralis } from "react-moralis"; -import { Button, Card, Modal, Row, Col } from "antd"; -import { SelectOutlined } from "@ant-design/icons"; -import { Signer } from "casper-js-sdk"; -import { GlobalContext } from "../contexts/provider"; -import { useMoralisDapp } from "../MoralisDappProvider/MoralisDappProvider"; -import { getEllipsisTxt } from "../helpers/formatters"; -import Address from "./Address/Address"; -import { errorToast } from "../contexts/utils/toasts"; -import changeAuthModal from "../contexts/actions/authModal/index"; +import React, { + useState, useEffect, useContext, useCallback, +} from 'react'; +import { useMoralis } from 'react-moralis'; +import { + Modal, Row, Col, +} from 'antd'; +import { SelectOutlined } from '@ant-design/icons'; +import { Signer } from 'casper-js-sdk'; +import { GlobalContext } from '../contexts/provider'; +import { useMoralisDapp } from '../MoralisDappProvider/MoralisDappProvider'; +import { getEllipsisTxt } from '../helpers/formatters'; +import Address from './Address/Address'; +import { errorToast } from '../contexts/utils/toasts'; +import changeAuthModal from '../contexts/actions/authModal/index'; import { handleLockSigner, handleUnlockSigner, isConnectedCasper, -} from "../contexts/actions/signer/index"; -import styles from "../styles/account/account.module.css"; -import walletLogin from "../contexts/actions/auth/walletLogin"; -import ButtonComponent from "./profile/ButtonComponent"; - +} from '../contexts/actions/signer/index'; +import styles from '../styles/account/account.module.css'; +import walletLogin from '../contexts/actions/auth/walletLogin'; +import ButtonComponent from './profile/ButtonComponent'; const Account = () => { const { authenticate, isAuthenticated, logout } = useMoralis(); @@ -37,19 +38,19 @@ const Account = () => { } = useContext(GlobalContext); const SIGNER_EVENTS = { - connected: "signer:connected", - disconnected: "signer:disconnected", - tabUpdated: "signer:tabUpdated", - activeKeyChanged: "signer:activeKeyChanged", - locked: "signer:locked", - unlocked: "signer:unlocked", + connected: 'signer:connected', + disconnected: 'signer:disconnected', + tabUpdated: 'signer:tabUpdated', + activeKeyChanged: 'signer:activeKeyChanged', + locked: 'signer:locked', + unlocked: 'signer:unlocked', }; const dispatchUnlockSinger = useCallback( (event) => { handleUnlockSigner(event.detail)(setSignerState); }, - [isConnected, setSignerState] + [isConnected, setSignerState], ); const dispatchDisconnectedSinger = useCallback(() => { @@ -62,8 +63,8 @@ const Account = () => { SIGNER_EVENTS.activeKeyChanged, SIGNER_EVENTS.connected, ].forEach((event) => window.addEventListener(event, dispatchUnlockSinger)); - [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach((event) => - window.addEventListener(event, dispatchDisconnectedSinger) + [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach( + (event) => window.addEventListener(event, dispatchDisconnectedSinger), ); return () => { @@ -71,11 +72,9 @@ const Account = () => { SIGNER_EVENTS.unlocked, SIGNER_EVENTS.activeKeyChanged, SIGNER_EVENTS.connected, - ].forEach((event) => - window.removeEventListener(event, dispatchUnlockSinger) - ); - [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach((event) => - window.removeEventListener(event, dispatchDisconnectedSinger) + ].forEach((event) => window.removeEventListener(event, dispatchUnlockSinger)); + [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach( + (event) => window.removeEventListener(event, dispatchDisconnectedSinger), ); }; }); @@ -86,9 +85,7 @@ const Account = () => { SIGNER_EVENTS.unlocked, SIGNER_EVENTS.activeKeyChanged, SIGNER_EVENTS.connected, - ].forEach((event) => - window.addEventListener(event, dispatchUnlockSinger) - ); + ].forEach((event) => window.addEventListener(event, dispatchUnlockSinger)); }); if (error) { errorToast(error); @@ -97,14 +94,14 @@ const Account = () => { const wallets = [ { - icon: "/assets/images/metamask.png", - label: "MetaMask", - id: "MetaMask", + icon: '/assets/images/metamask.png', + label: 'MetaMask', + id: 'MetaMask', }, { - icon: "/assets/images/casper.png", - label: "Casper", - id: "Casper", + icon: '/assets/images/casper.png', + label: 'Casper', + id: 'Casper', }, ]; @@ -116,25 +113,20 @@ const Account = () => { changeAuthModal(!showModal)(setShowModal); }; - const metamaskConnectWallet = async () => { if ( - chainId === process.env.NEXT_PUBLIC_NETWORK_ID_MAINNET || - chainId === process.env.NEXT_PUBLIC_NETWORK_ID_TESTNET + chainId === process.env.NEXT_PUBLIC_NETWORK_ID_MAINNET + || chainId === process.env.NEXT_PUBLIC_NETWORK_ID_TESTNET ) { - - authenticate().then(() => { setWalletLoginRequest(true); - }) - - + }); if (isConnected === true) { await window.casperlabsHelper.disconnectFromSite(); } } else { - errorToast("Wrong Chain, please connect to Polygon chain"); + errorToast('Wrong Chain, please connect to Polygon chain'); logout(); setWalletLoginRequest(false); } @@ -144,22 +136,28 @@ const Account = () => { const userToken = window.localStorage.getItem('jwtToken'); const userInfo = window.localStorage.getItem('userInfo'); - if (isAuthenticated && walletLoginRequest === true && (!userToken || !userInfo)) { + if ( + isAuthenticated + && walletLoginRequest === true + && (!userToken || !userInfo) + ) { walletLogin(walletAddress, authenticate)(authDispatch); - } - },[isAuthenticated, walletLoginRequest, typeof window !== 'undefined' - ? window.localStorage.getItem('jwtToken') - : null]) - - + } + }, [ + isAuthenticated, + walletLoginRequest, + typeof window !== 'undefined' + ? window.localStorage.getItem('jwtToken') + : null, + ]); useEffect(async () => { if ( - chainId !== process.env.NEXT_PUBLIC_NETWORK_ID_MAINNET && - chainId !== process.env.NEXT_PUBLIC_NETWORK_ID_TESTNET && - showModal === true + chainId !== process.env.NEXT_PUBLIC_NETWORK_ID_MAINNET + && chainId !== process.env.NEXT_PUBLIC_NETWORK_ID_TESTNET + && showModal === true ) { - errorToast("Wrong Chain, please connect to Polygon chain"); + errorToast('Wrong Chain, please connect to Polygon chain'); try { logout(); @@ -194,20 +192,20 @@ const Account = () => {
@@ -227,22 +225,20 @@ const Account = () => {
- + {wallets.map((wallet) => (
- wallet.id === "MetaMask" - ? metamaskConnectWallet() - : casperConnectWallet() - } + onClick={() => (wallet.id === 'MetaMask' + ? metamaskConnectWallet() + : casperConnectWallet())} > wallet
@@ -253,7 +249,8 @@ const Account = () => {
- Dont have a wallet? Sign up using{" "} + Dont have a wallet? Sign up using + {' '} Email
@@ -281,46 +278,52 @@ const Account = () => { footer={false} onCancel={() => setIsModalVisible(false)} style={{ - background: "#1c1d37", - border: "1px solid #A259FF", - borderRadius: "20px", + background: 'var(--div-background-color)', + border: '1px solid #A259FF', + borderRadius: '20px', }} bodyStyle={{ - marginTop: "30px", - background: "#1c1d37", + marginTop: '30px', + background: 'var(--div-background-color)', }} closable={false} width="700px" >
-
-
-
- logo -
-

- Connected Account -

-
-

setIsModalVisible(false)} - > - X -

+
+
+
+ logo
- - - - +

+ Connected Account +

+
+

setIsModalVisible(false)} + > + X +

+
+ + + +
-
+ - { - logout(); - setWalletLoginRequest(false); - await window.casperlabsHelper.disconnectFromSite(); - [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach( - (event) => - window.addEventListener(event, dispatchDisconnectedSinger) - ); - setIsModalVisible(false); - }} /> - + { + logout(); + setWalletLoginRequest(false); + await window.casperlabsHelper.disconnectFromSite(); + [SIGNER_EVENTS.locked, SIGNER_EVENTS.disconnected].forEach( + (event) => window.addEventListener(event, dispatchDisconnectedSinger), + ); + setIsModalVisible(false); + }} + /> + ); diff --git a/components/CreateProfile/CreateProfileInput.js b/components/CreateProfile/CreateProfileInput.js index 341a3e5d..3c960a6c 100644 --- a/components/CreateProfile/CreateProfileInput.js +++ b/components/CreateProfile/CreateProfileInput.js @@ -5,7 +5,14 @@ import DatePicker from 'react-datepicker'; import 'react-datepicker/dist/react-datepicker.css'; const CreateProfileInput = function ({ - label, type, name, options, required, value, setValue, className, + label, + type, + name, + options, + required, + value, + setValue, + className, }) { const [colorPickerVisibility, setColorPickerVisibility] = useState(false); @@ -40,22 +47,29 @@ const CreateProfileInput = function ({ } }; - const handleSwitchChange = () => (setValue ? { - value: options.find((option) => option.label === value), - onChange: (e) => { setValue(e.value); }, - } : {}); + const handleSwitchChange = () => (setValue + ? { + value: options.find((option) => option.label === value), + onChange: (e) => { + setValue(e.value); + }, + } + : {}); const handleColorChange = (color) => { setValue(color.hex); }; const colourStyles = { - control: (styles) => ({ ...styles, backgroundColor: '#1C1D37' }), + control: (styles) => ({ + ...styles, + backgroundColor: 'var(--div-background-color)', + }), option: (styles, { data, isDisabled, isFocused, isSelected, }) => ({ ...styles, - backgroundColor: '#1C1D37', + backgroundColor: 'var(--div-background-color)', color: '#ddd', cursor: isDisabled ? 'not-allowed' : 'default', }), @@ -101,15 +115,19 @@ const CreateProfileInput = function ({
setColorPickerVisibility(!colorPickerVisibility)} - style={colorPickerVisibility ? { backgroundColor: '#a159fe' } : { backgroundColor: '#a159fe' }} + style={ + colorPickerVisibility + ? { backgroundColor: '#a159fe' } + : { backgroundColor: '#a159fe' } + } > {!colorPickerVisibility ? 'Pick a Color' : 'Close Color Picker'}
{colorPickerVisibility && ( -
- -
+
+ +
)} ); @@ -127,7 +145,9 @@ const CreateProfileInput = function ({ className="datepicker" value={value} selected={value} - onChange={(date) => { setValue(date); }} + onChange={(date) => { + setValue(date); + }} dateFormat="MM/dd/yyyy" placeholder="mm/dd/yyyy" required diff --git a/components/donate/DonateAmount.js b/components/donate/DonateAmount.js index 469d0302..0eb2c86a 100644 --- a/components/donate/DonateAmount.js +++ b/components/donate/DonateAmount.js @@ -52,9 +52,14 @@ const DonateAmount = ({
-
-
+

or donate a cusotm ammount

diff --git a/components/homepage/HomepageDonate.js b/components/homepage/HomepageDonate.js index 744a7cf9..8a2f3ba3 100644 --- a/components/homepage/HomepageDonate.js +++ b/components/homepage/HomepageDonate.js @@ -71,9 +71,7 @@ const HomepageDonate = () => {
-
+
{ }} /> -
{ setMonthly(false); }} /> - +
-
{count === 1 ? ( @@ -198,18 +200,6 @@ const HomepageDonate = () => { /> ) : null}
- {/*
-

Other ways to support us:

-
- - - -
-
*/}
); diff --git a/components/learn/SkeletonElement.js b/components/learn/SkeletonElement.js index 0af8f11b..92481475 100644 --- a/components/learn/SkeletonElement.js +++ b/components/learn/SkeletonElement.js @@ -1,19 +1,23 @@ -import React from "react"; -import Skeleton from "react-loading-skeleton"; -import "./learn-css/Skeleton.module.css"; +import React from 'react'; +import Skeleton from 'react-loading-skeleton'; +import './learn-css/Skeleton.module.css'; const SkeletonElement = () => (
{/* Course Sidebar */}
@@ -23,14 +27,14 @@ const SkeletonElement = () => (
@@ -38,12 +42,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -51,12 +55,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -66,7 +70,7 @@ const SkeletonElement = () => (
@@ -74,12 +78,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -87,12 +91,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -102,7 +106,7 @@ const SkeletonElement = () => (
@@ -110,12 +114,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -123,12 +127,12 @@ const SkeletonElement = () => ( className="mr-2" width={25} height={25} - style={{ borderRadius: "50%", backgroundColor: "#dcdcdc" }} + style={{ borderRadius: '50%', backgroundColor: '#dcdcdc' }} />
@@ -146,24 +150,24 @@ const SkeletonElement = () => (
@@ -175,12 +179,12 @@ const SkeletonElement = () => (
@@ -192,8 +196,8 @@ const SkeletonElement = () => ( (
-
+
@@ -226,9 +230,9 @@ const SkeletonElement = () => ( className="mr-5" height={6} style={{ - backgroundColor: "#dcdcdc", - width: "90%", - marginLeft: "4rem", + backgroundColor: '#dcdcdc', + width: '90%', + marginLeft: '4rem', }} />
diff --git a/components/learn/courseDetails/ActivityDetails.js b/components/learn/courseDetails/ActivityDetails.js index 31f71605..1ae6b4b0 100644 --- a/components/learn/courseDetails/ActivityDetails.js +++ b/components/learn/courseDetails/ActivityDetails.js @@ -58,7 +58,9 @@ const ActivityDetails = ({ } const specificUserModules = userModules - && userModules.filter((eModule) => specificModules.some((module) => eModule.moduleId._id === module._id)); + && userModules.filter( + (eModule) => specificModules.some((module) => eModule.moduleId._id === module._id), + ); const userModulesId = []; specificUserModules.forEach((module) => { @@ -77,8 +79,7 @@ const ActivityDetails = ({ body: JSON.stringify({ completionRate: 50, }), - }) - .then((res) => res.json()); + }).then((res) => res.json()); } }; @@ -133,7 +134,7 @@ const ActivityDetails = ({
{/*
*/} -
-
- -

+

{moduleInfo.name}

-
{/* youtube player */} -
+
@@ -192,7 +216,6 @@ const ActivityDetails = ({
- {moduleInfo.elementKey !== specificModules.length - 1 && ( <> {completed === false ? ( @@ -220,7 +243,10 @@ const ActivityDetails = ({
-
+
@@ -232,30 +258,33 @@ const ActivityDetails = ({ ? 'green-activityStatus d-flex justify-content-center align-items-center' : 'red-activityStatus d-flex justify-content-center align-items-center' } - style={ - { - textAlign: 'center', - fontSize: '17px', - width: 'auto', - paddingLeft: '10px', - paddingRight: '10px', - } - } + style={{ + textAlign: 'center', + fontSize: '17px', + width: 'auto', + paddingLeft: '10px', + paddingRight: '10px', + }} > {completionStatus}

-

{moduleInfo.description}

+

+ {moduleInfo.description} +

{/* Buttons */}
- {/* */}
-

Addtional Resources

+

+ Addtional Resources +

@@ -377,7 +417,7 @@ const ActivityDetails = ({
-
+
); }; diff --git a/components/learn/courseDetails/coursesDetails.css b/components/learn/courseDetails/coursesDetails.css index c07f642c..dbd4da1a 100644 --- a/components/learn/courseDetails/coursesDetails.css +++ b/components/learn/courseDetails/coursesDetails.css @@ -5,7 +5,7 @@ color: #fff; } .course-sidebar { - background-color: #1c1d37; + background-color: var(--div-background-color); color: #fff; padding-bottom: 8rem; border: 1px solid #a259ff; @@ -53,12 +53,12 @@ border: 1px solid rgb(223, 222, 222); color: rgb(61, 61, 61) !important; } -.lesson-button:hover{ - background: #6938EF; +.lesson-button:hover { + background: #6938ef; } -.quiz-button:hover{ +.quiz-button:hover { background: white; - color: #6938EF; + color: #6938ef; } /* User Banner */ @@ -81,7 +81,7 @@ border: 1px solid #a259ff; border-radius: 16px; margin-bottom: 2rem; - background: #1c1d37; + background: var(--div-background-color); } .progress-circle { @@ -165,12 +165,12 @@ color: rgb(204, 203, 203); } .course-weeks { - background: #1C1D37; + background: var(--div-background-color); box-shadow: inset -7px -7px 24px rgba(255, 255, 255, 0.04), inset 7px 7px 14px rgba(255, 255, 255, 0.09); border-radius: 16px; cursor: pointer; - border: 3px solid #6938EF; + border: 3px solid #6938ef; padding: 20px 0; } .course-weeks .progress { @@ -184,7 +184,7 @@ background: #14152b; } .modules-details { - background-color: #1c1d37; + background-color: var(--div-background-color); border: 1px solid #a259ff; border-radius: 16px; margin-bottom: 2rem; diff --git a/components/settings/ProfileFourthStep.js b/components/settings/ProfileFourthStep.js index 657c0316..9a0db98f 100644 --- a/components/settings/ProfileFourthStep.js +++ b/components/settings/ProfileFourthStep.js @@ -13,9 +13,7 @@ const DropdownIndicator = () => ( /> ); -const ProfileFourthStep = ({ - data, step, setData, -}) => { +const ProfileFourthStep = ({ data, step, setData }) => { const [googleLink, setGoogleLink] = useState(data?.GoogleLink); const [figmaLink, setFigmaLink] = useState(data?.FigmaLink); const [clickupLink, setClickupLink] = useState(data?.ClickupLink); @@ -39,17 +37,15 @@ const ProfileFourthStep = ({ dribbleLink: true, }); const [show, setShow] = useState(true); - const [missingLinks, setMissingLinks] = useState( - [ - { label: facebookLink ? '' : 'Facebook', value: 'facebook' }, - { label: figmaLink ? '' : 'Figma', value: 'figma' }, - { label: clickupLink ? '' : 'Click up', value: 'clickup' }, - { label: linkedinLink ? '' : 'LinkedIn', value: 'linkedin' }, - { label: githubLink ? '' : 'Github', value: 'github' }, - { label: dribbleLink ? '' : 'Dribble', value: 'dribble' }, - { label: googleLink ? '' : 'Google', value: 'google' }, - ], - ); + const [missingLinks, setMissingLinks] = useState([ + { label: facebookLink ? '' : 'Facebook', value: 'facebook' }, + { label: figmaLink ? '' : 'Figma', value: 'figma' }, + { label: clickupLink ? '' : 'Click up', value: 'clickup' }, + { label: linkedinLink ? '' : 'LinkedIn', value: 'linkedin' }, + { label: githubLink ? '' : 'Github', value: 'github' }, + { label: dribbleLink ? '' : 'Dribble', value: 'dribble' }, + { label: googleLink ? '' : 'Google', value: 'google' }, + ]); // const [update, setUpdate] = useState(false); @@ -117,15 +113,19 @@ const ProfileFourthStep = ({ default: break; } - const updatedLinks = missingLinks.filter((item) => item.value !== link.value); + const updatedLinks = missingLinks.filter( + (item) => item.value !== link.value, + ); setMissingLinks(updatedLinks); - if (facebookLink + if ( + facebookLink && linkedinLink && dribbleLink && figmaLink && clickupLink && githubLink - && googleLink) { + && googleLink + ) { setShow(false); } setLink(''); @@ -137,15 +137,19 @@ const ProfileFourthStep = ({ ...provided, // borderBottom: '1px dotted pink', color: 'white', - border: state.isSelected ? '2px solid #6938EF' : state.isFocused ? '2px solid #6938EF' : '2px solid transparent', - background: '#1C1D37', + border: state.isSelected + ? '2px solid #6938EF' + : state.isFocused + ? '2px solid #6938EF' + : '2px solid transparent', + background: ' var(--div-background-color);', borderRadius: '8px', padding: 20, width: '100%', cursor: 'pointer', ':active': { ...styles[':active'], - background: '#1C1D37', + background: ' var(--div-background-color);', }, }), control: () => ({ @@ -157,10 +161,9 @@ const ProfileFourthStep = ({ menu: (provided) => ({ ...provided, // borderBottom: '1px dotted pink', - background: '#1C1D37', + background: ' var(--div-background-color);', padding: 5, border: '1px solid #6938EF', - }), container: (provided) => ({ ...provided, @@ -180,7 +183,10 @@ const ProfileFourthStep = ({ const transition = 'opacity 300ms'; return { - ...provided, opacity, transition, color, + ...provided, + opacity, + transition, + color, }; }, }; @@ -195,328 +201,375 @@ const ProfileFourthStep = ({

Social Links

- {googleLink - && ( -
-
-
- {' '} - + {googleLink && ( +
+
+
+ {' '} + +
+ setGoogleLink(e.target.value)} + disabled={edit.googleLink} + /> + {edit.googleLink && ( + edit setEdit({ + googleLink: false, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )} + {!edit.googleLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setGoogleLink(e.target.value)} disabled={edit.googleLink} /> - {edit.googleLink && ( - edit setEdit({ - googleLink: false, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )} - {!edit.googleLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {(facebookLink || facebookLink === '') - && ( -
-
-
- {' '} - + {(facebookLink || facebookLink === '') && ( +
+
+
+ {' '} + +
+ setFacebookLink(e.target.value)} + disabled={edit.facebookLink} + /> + {edit.facebookLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: false, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )} + {!edit.facebookLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setFacebookLink(e.target.value)} disabled={edit.facebookLink} /> - {edit.facebookLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: false, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )} - {!edit.facebookLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {(linkedinLink || linkedinLink === '') - && ( -
-
-
- + {(linkedinLink || linkedinLink === '') && ( +
+
+
+ +
+ setLinkedinLink(e.target.value)} + disabled={edit.linkedinLink} + /> + {edit.linkedinLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: false, + githubLink: true, + dribbleLink: true, + })} + /> + )} + {!edit.linkedinLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setLinkedinLink(e.target.value)} disabled={edit.linkedinLink} /> - {edit.linkedinLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: false, - githubLink: true, - dribbleLink: true, - })} - /> - )} - {!edit.linkedinLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {(githubLink || githubLink === '') - && ( -
-
-
- + {(githubLink || githubLink === '') && ( +
+
+
+ +
+ setGithubLink(e.target.value)} + disabled={edit.githubLink} + /> + {edit.githubLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: false, + dribbleLink: true, + })} + /> + )} + {!edit.githubLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setGithubLink(e.target.value)} disabled={edit.githubLink} /> - {edit.githubLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: false, - dribbleLink: true, - })} - /> - )} - {!edit.githubLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {(figmaLink || figmaLink === '') - && ( -
-
-
- + {(figmaLink || figmaLink === '') && ( +
+
+
+ +
+ setFigmaLink(e.target.value)} + disabled={edit.figmaLink} + /> + {edit.figmaLink && ( + edit setEdit({ + googleLink: true, + figmaLink: false, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )} + {!edit.figmaLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setFigmaLink(e.target.value)} disabled={edit.figmaLink} /> - {edit.figmaLink && ( - edit setEdit({ - googleLink: true, - figmaLink: false, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )} - {!edit.figmaLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {(dribbleLink || dribbleLink === '') - && ( -
-
-
- -
- setDribbleLink(e.target.value)} disabled={edit.dribbleLink} /> - {edit.dribbleLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: false, - })} - /> - )} - {!edit.dribbleLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )} -
-
- )} - {(clickupLink || clickupLink === '') - && ( -
-
-
- clickup-icon +
+
+ +
+ setDribbleLink(e.target.value)} + disabled={edit.dribbleLink} /> + {edit.dribbleLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: false, + })} + /> + )} + {!edit.dribbleLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )}
- setClickupLink(e.target.value)} disabled={edit.clickupLink} /> - {edit.clickupLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: false, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )} - {!edit.clickupLink && ( - edit setEdit({ - googleLink: true, - figmaLink: true, - clickupLink: true, - facebookLink: true, - linkedinLink: true, - githubLink: true, - dribbleLink: true, - })} - /> - )}
-
)} - {show && ( -
-
-
- -
+ {(clickupLink || clickupLink === '') && ( +
+
+
clickup-icon setAddActive(!addActive)} />
+ setClickupLink(e.target.value)} + disabled={edit.clickupLink} + /> + {edit.clickupLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: false, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )} + {!edit.clickupLink && ( + edit setEdit({ + googleLink: true, + figmaLink: true, + clickupLink: true, + facebookLink: true, + linkedinLink: true, + githubLink: true, + dribbleLink: true, + })} + /> + )} +
+
+ )} + {show && ( +
+
+
+
+ clickup-icon setAddActive(!addActive)} + /> +
+
+
-
-
)} {addActive && ( <>
- setNewLink(e.target.value)} placeholder="Username/Link" /> + setNewLink(e.target.value)} + placeholder="Username/Link" + />
-
+