22 lines
23 KiB
JavaScript
22 lines
23 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/APYHistoryCard.tsx":
|
||
|
|
/*!***************************************!*\
|
||
|
|
!*** ./components/APYHistoryCard.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 */ APYHistoryCard)\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 _contexts_AppContext__WEBPACK_IMPORTED_MODULE_2__ = __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\nfunction APYHistoryCard() {\n _s();\n const { t } = (0,_contexts_AppContext__WEBPACK_IMPORTED_MODULE_2__.useApp)();\n const [activeTab, setActiveTab] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"apy\");\n // 橙色渐变条形图数据\n const chartData = [\n {\n height: 85,\n color: \"#ffe9dc\"\n },\n {\n height: 93,\n color: \"#ffc9ad\"\n },\n {\n height: 100,\n color: \"#ffc9ad\"\n },\n {\n height: 105,\n color: \"#ffba96\"\n },\n {\n height: 108,\n color: \"#ffa67e\"\n },\n {\n height: 116,\n color: \"#f48d5f\"\n },\n {\n height: 124,\n color: \"#ff6900\"\n },\n {\n height: 127,\n color: \"#f35b00\"\n },\n {\n height: 139,\n color: \"#d64700\"\n }\n ];\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"bg-bg-surface dark:bg-gray-800 rounded-3xl border border-border-gray dark:border-gray-700 p-6 flex flex-col gap-6\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n className: \"flex gap-6 border-b border-border-gray dark:border-gray-700\",\n children: [\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n onClick: ()=>setActiveTab(\"apy\"),\n className: \"pb-3 px-1 text-body-small font-bold transition-colors \".concat(activeTab === \"apy\" ? \"text-text-primary dark:text-white border-b-2 border-text-primary dark:border-white -mb-[1px]\" : \"text-text-tertiary dark:text-gray-400\"),\n children: t(\"apy.apyHistory\")\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/APYHistoryCard.tsx\",\n lineNumber: 27,\n columnNumber: 9\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n onClick: ()=>setActiveTab(\"price\"),\n className: \"pb-3 px-1 text-body-small font-bold transition-colors \".concat(activeTab === \"price\" ? \"text-text-primary dark:text-white border-b-2 border-text-primary dark:border-white -mb-[1px]\" : \"text-text-tertiary dark:text-gray-400\"),\n children: t(\"apy.priceHistory\")\n }, void 0, false, {\n fileName: \"/home/coder/myprojects/asset-dashboard-next/components/APYHistoryCard.tsx\",\n lineNumber: 37,\n columnNumber: 9\n }, this)\n ]\n
|
||
|
|
|
||
|
|
/***/ })
|
||
|
|
|
||
|
|
});
|