22 lines
16 KiB
JavaScript
22 lines
16 KiB
JavaScript
|
|
"use strict";
|
||
|
|
/*
|
||
|
|
* ATTENTION: An "eval-source-map" devtool has been used.
|
||
|
|
* This devtool is neither made for production nor for readable output files.
|
||
|
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
||
|
|
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
||
|
|
* or disable the default devtool with "devtool: false".
|
||
|
|
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||
|
|
*/
|
||
|
|
self["webpackHotUpdate_N_E"]("app/page",{
|
||
|
|
|
||
|
|
/***/ "(app-pages-browser)/./components/ContentSection.tsx":
|
||
|
|
/*!***************************************!*\
|
||
|
|
!*** ./components/ContentSection.tsx ***!
|
||
|
|
\***************************************/
|
||
|
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
||
|
|
|
||
|
|
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ContentSection)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _TabNavigation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabNavigation */ \"(app-pages-browser)/./components/TabNavigation.tsx\");\n/* harmony import */ var _OverviewTab__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OverviewTab */ \"(app-pages-browser)/./components/OverviewTab.tsx\");\n/* harmony import */ var _contexts_AppContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/contexts/AppContext */ \"(app-pages-browser)/./contexts/AppContext.tsx\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\n\n\nfunction ContentSection() {\n var _tabs_find;\n _s();\n const { t } = (0,_contexts_AppContext__WEBPACK_IMPORTED_MODULE_4__.useApp)();\n const tabs = [\n {\n id: \"overview\",\n label: t(\"tabs.overview\")\n },\n {\n id: \"asset-description\",\n label: t(\"tabs.assetDescription\")\n },\n {\n id: \"analytics\",\n label: t(\"tabs.analytics\")\n },\n {\n id: \"performance-analysis\",\n label: t(\"tabs.performanceAnalysis\")\n },\n {\n id: \"asset-custody\",\n label: t(\"tabs.assetCustody\")\n }\n ];\n const [activeTab, setActiveTab] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"overview\");\n const handleTabChange = (tabId)=>{\n // If clicking asset-description, performance-analysis, or asset-custody, scroll to that section\n if (tabId === \"asset-description\" || tabId === \"performance-analysis\" || tabId === \"asset-custody\") {\n setTimeout(()=>{\n const element = document.getElementById(tabId);\n if (element) {\n element.scrollIntoView({\n behavior: \"smooth\",\n block: \"start\"\n });\n }\n }, 100);\n // Keep active tab as overview\n setActiveTab(\"overview\");\n } else {\n setActiveTab(tabId);\n }\n };\n // Show OverviewTab for overview, asset-description, analytics, performance-analysis, and asset-custody\n const showOverview = [\n \"overview\",\n \"asset-description\",\n \"analytics\",\n \"performance-analysis\",\n \"asset-custody\"\n ].includes(activeTab);\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"flex flex-col gap-6 w-full\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_TabNavigation__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n tabs: tabs,\n defaultActiveId: \"overview\",\n onTabChange: handleTabChange\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/ContentSection.tsx\",\n lineNumber: 43,\n columnNumber: 7\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"w-full\",\n children: [\n
|
||
|
|
|
||
|
|
/***/ })
|
||
|
|
|
||
|
|
});
|