f09b63e0e1bcff470450299ae881f806.json 5.4 KB
Newer Older
Mathias Engelbrecht Pilegård's avatar
Mathias Engelbrecht Pilegård committed
1
{"ast":null,"code":"var _jsxFileName = \"C:\\\\Users\\\\Bruger\\\\Desktop\\\\Web-projects\\\\pipit\\\\client\\\\src\\\\components\\\\removeAccount\\\\RemoveAccount.js\",\n    _s = $RefreshSig$();\n\nimport React, { useState } from 'react';\nimport ConfirmRemoveAccountModal from './confirmRemoveAccountModal/ConfirmRemoveAccountModal';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nfunction RemoveAccount() {\n  _s();\n\n  const [confirmAccountRemoveModalState, setConfirmAccountRemoveModalState] = useState(false);\n\n  const toggleConfirmAccountRemoveModalState = () => setConfirmAccountRemoveModalState(!confirmAccountRemoveModalState);\n\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    className: \"deactivate-account-container\",\n    children: [/*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"container-header\",\n      children: [/*#__PURE__*/_jsxDEV(FontAwesomeIcon, {\n        icon: \"trash\",\n        className: \"trash-icon\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 12,\n        columnNumber: 9\n      }, this), /*#__PURE__*/_jsxDEV(\"h5\", {\n        children: \"Delete account\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 13,\n        columnNumber: 9\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 11,\n      columnNumber: 7\n    }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"content\",\n      children: [/*#__PURE__*/_jsxDEV(\"p\", {\n        children: \"Your account and all your data will be permanently deleted\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 16,\n        columnNumber: 9\n      }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n        onClick: toggleConfirmAccountRemoveModalState,\n        children: \"Delete\\xA0\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 19,\n        columnNumber: 9\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 15,\n      columnNumber: 7\n    }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n      className: `modal ${confirmAccountRemoveModalState ? \"active\" : \"inactive\"}`,\n      children: /*#__PURE__*/_jsxDEV(ConfirmRemoveAccountModal, {\n        removeModal: () => setConfirmAccountRemoveModalState(false)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 24,\n        columnNumber: 9\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 23,\n      columnNumber: 7\n    }, this)]\n  }, void 0, true, {\n    fileName: _jsxFileName,\n    lineNumber: 10,\n    columnNumber: 5\n  }, this);\n}\n\n_s(RemoveAccount, \"XKJA7Na5EjeRgSbWm6h1M3CFd/k=\");\n\n_c = RemoveAccount;\nexport default RemoveAccount;\n\nvar _c;\n\n$RefreshReg$(_c, \"RemoveAccount\");","map":{"version":3,"sources":["C:/Users/Bruger/Desktop/Web-projects/pipit/client/src/components/removeAccount/RemoveAccount.js"],"names":["React","useState","ConfirmRemoveAccountModal","FontAwesomeIcon","RemoveAccount","confirmAccountRemoveModalState","setConfirmAccountRemoveModalState","toggleConfirmAccountRemoveModalState"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,OAAOC,yBAAP,MAAsC,uDAAtC;AACA,SAASC,eAAT,QAAgC,gCAAhC;;;AAEA,SAASC,aAAT,GAAyB;AAAA;;AACvB,QAAM,CAACC,8BAAD,EAAiCC,iCAAjC,IAAsEL,QAAQ,CAAC,KAAD,CAApF;;AACA,QAAMM,oCAAoC,GAAG,MAAMD,iCAAiC,CAAC,CAACD,8BAAF,CAApF;;AAEA,sBACE;AAAK,IAAA,SAAS,EAAC,8BAAf;AAAA,4BACE;AAAK,MAAA,SAAS,EAAC,kBAAf;AAAA,8BACE,QAAC,eAAD;AAAiB,QAAA,IAAI,EAAC,OAAtB;AAA8B,QAAA,SAAS,EAAC;AAAxC;AAAA;AAAA;AAAA;AAAA,cADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAFF;AAAA;AAAA;AAAA;AAAA;AAAA,YADF,eAKE;AAAK,MAAA,SAAS,EAAC,SAAf;AAAA,8BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cADF,eAIE;AAAQ,QAAA,OAAO,EAAEE,oCAAjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAJF;AAAA;AAAA;AAAA;AAAA;AAAA,YALF,eAaE;AAAK,MAAA,SAAS,EAAG,SAAQF,8BAA8B,GAAG,QAAH,GAAc,UAAW,EAAhF;AAAA,6BACE,QAAC,yBAAD;AAA2B,QAAA,WAAW,EAAE,MAAMC,iCAAiC,CAAC,KAAD;AAA/E;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,YAbF;AAAA;AAAA;AAAA;AAAA;AAAA,UADF;AAmBD;;GAvBQF,a;;KAAAA,a;AAyBT,eAAeA,aAAf","sourcesContent":["import React, { useState } from 'react'\r\nimport ConfirmRemoveAccountModal from './confirmRemoveAccountModal/ConfirmRemoveAccountModal'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\n\r\nfunction RemoveAccount() {\r\n  const [confirmAccountRemoveModalState, setConfirmAccountRemoveModalState] = useState(false)\r\n  const toggleConfirmAccountRemoveModalState = () => setConfirmAccountRemoveModalState(!confirmAccountRemoveModalState)\r\n\r\n  return (\r\n    <div className=\"deactivate-account-container\">\r\n      <div className=\"container-header\">\r\n        <FontAwesomeIcon icon=\"trash\" className=\"trash-icon\"></FontAwesomeIcon>\r\n        <h5>Delete account</h5>\r\n      </div>\r\n      <div className=\"content\">\r\n        <p>\r\n          Your account and all your data will be permanently deleted\r\n        </p>\r\n        <button onClick={toggleConfirmAccountRemoveModalState}>\r\n          Delete&nbsp;\r\n        </button>\r\n      </div>\r\n      <div className={`modal ${confirmAccountRemoveModalState ? \"active\" : \"inactive\"}`}>\r\n        <ConfirmRemoveAccountModal removeModal={() => setConfirmAccountRemoveModalState(false)} />\r\n      </div>\r\n    </div>\r\n  )\r\n}\r\n\r\nexport default RemoveAccount\r\n"]},"metadata":{},"sourceType":"module"}