You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.1 KiB
1 line
3.1 KiB
2 years ago
|
{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/UserProfileInfo/CurrentDateShamsi/index.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst CurrentDateShamsi = _ref => {\n let {\n className,\n weekClassName\n } = _ref;\n const date = new Date();\n const option = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\"\n };\n const option2 = {\n weekday: \"long\"\n };\n const todayDate = date.toLocaleDateString(\"fa-IR\", option);\n const weekday = date.toLocaleDateString(\"fa-IR\", option2);\n return /*#__PURE__*/_jsxDEV(\"p\", {\n className: `${className}`,\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n className: `${weekClassName}`,\n children: weekday\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }, this), \" \", todayDate]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 5\n }, this);\n};\n\n_c = CurrentDateShamsi;\nexport default CurrentDateShamsi;\nCurrentDateShamsi.defaultProps = {\n className: \"text-sm text-primaryLight\",\n weekClassName: \"text-sm text-primary\"\n};\n\nvar _c;\n\n$RefreshReg$(_c, \"CurrentDateShamsi\");","map":{"version":3,"names":["React","CurrentDateShamsi","className","weekClassName","date","Date","option","year","month","day","option2","weekday","todayDate","toLocaleDateString","defaultProps"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/UserProfileInfo/CurrentDateShamsi/index.js"],"sourcesContent":["import React from \"react\";\n\nconst CurrentDateShamsi = ({ className, weekClassName }) => {\n const date = new Date();\n const option = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n };\n const option2 = {\n weekday: \"long\",\n };\n\n const todayDate = date.toLocaleDateString(\"fa-IR\", option);\n const weekday = date.toLocaleDateString(\"fa-IR\", option2);\n\n return (\n <p className={`${className}`}>\n <span className={`${weekClassName}`}>{weekday}</span> {todayDate}\n </p>\n );\n};\n\nexport default CurrentDateShamsi;\n\nCurrentDateShamsi.defaultProps = {\n className: \"text-sm text-primaryLight\",\n weekClassName: \"text-sm text-primary\",\n};\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;;AAEA,MAAMC,iBAAiB,GAAG,QAAkC;EAAA,IAAjC;IAAEC,SAAF;IAAaC;EAAb,CAAiC;EAC1D,MAAMC,IAAI,GAAG,IAAIC,IAAJ,EAAb;EACA,MAAMC,MAAM,GAAG;IACbC,IAAI,EAAE,SADO;IAEbC,KAAK,EAAE,SAFM;IAGbC,GAAG,EAAE;EAHQ,CAAf;EAKA,MAAMC,OAAO,GAAG;IACdC,OAAO,EAAE;EADK,CAAhB;EAIA,MAAMC,SAAS,GAAGR,IAAI,CAACS,kBAAL,CAAwB,OAAxB,EAAiCP,MAAjC,CAAlB;EACA,MAAMK,OAAO,GAAGP,IAAI,CAACS,kBAAL,CAAwB,OAAxB,EAAiCH,OAAjC,CAAhB;EAEA,oBACE;IAAG,SAAS,EAAG,GAAER,SAAU,EAA3B;IAAA,wBACE;MAAM,SAAS,EAAG,GAAEC,aAAc,EAAlC;MAAA,UAAsCQ;IAAtC;MAAA;MAAA;MAAA;IAAA,QADF,OACyDC,SADzD;EAAA;IAAA;IAAA;IAAA;EAAA,QADF;AAKD,CAnBD;;KAAMX,iB;AAqBN,eAAeA,iBAAf;AAEAA,iBAAiB,CAACa,YAAlB,GAAiC;EAC/BZ,SAAS,EAAE,2BADoB;EAE/BC,aAAa,EAAE;AAFgB,CAAjC"},"metadata":{},"sourceType":"module"}
|