@mirai/core 0.1.76 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,9 @@ const Notifications = () => {
22
22
  const [, setTimestamp] = (0, _react.useState)();
23
23
  const {
24
24
  value: {
25
- session
25
+ session: {
26
+ authorization
27
+ } = {}
26
28
  }
27
29
  } = (0, _dataSources.useStore)();
28
30
  (0, _react.useEffect)(() => {
@@ -32,7 +34,7 @@ const Notifications = () => {
32
34
  }, []);
33
35
  (0, _react.useEffect)(() => {
34
36
  queue = {};
35
- }, [session]);
37
+ }, [authorization]);
36
38
  const handleAdd = notification => {
37
39
  if (!notification) return;
38
40
  const {
@@ -1 +1 @@
1
- {"version":3,"file":"Core.Notifications.js","names":["EVENT_NAME","queue","Notifications","translate","useLocale","setTimestamp","useState","value","session","useStore","useEffect","Event","subscribe","handleAdd","unsubscribe","notification","success","warning","id","Date","getTime","Math","random","toFixed","visible","forceRender","setTimeout","parseMotion","handleClose","motionExpand","Theme","get","parseFloat","replace","keys","Object","style","notifications","sort","map","key","index","defaultMessage","props","styles","item","zIndex","length","displayName","propTypes"],"sources":["../src/Core.Notifications.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Notification, styles, Theme, View } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport style from './Core.Notifications.module.css';\n\nconst EVENT_NAME = 'notification';\nlet queue = {};\n\nconst Notifications = () => {\n const { translate } = useLocale();\n const [, setTimestamp] = useState();\n const {\n value: { session },\n } = useStore();\n\n useEffect(() => {\n Event.subscribe(EVENT_NAME, handleAdd);\n return () => Event.unsubscribe(EVENT_NAME, handleAdd);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n queue = {};\n }, [session]);\n\n const handleAdd = (notification) => {\n if (!notification) return;\n\n const { success, warning } = notification;\n const id = `${new Date().getTime()}:${Math.random().toFixed(8)}`;\n\n queue[id] = { ...notification, visible: false };\n forceRender();\n\n setTimeout(() => {\n queue[id].visible = true;\n forceRender();\n }, parseMotion());\n\n if (success || warning) setTimeout(() => handleClose(id), success ? 5000 : 10000);\n\n return;\n };\n\n const handleClose = (id) => {\n if (!queue[id]) return;\n\n setTimestamp(() => {\n queue[id].visible = false;\n\n setTimeout(() => {\n delete queue[id];\n forceRender();\n }, parseMotion());\n\n return new Date().getTime();\n });\n };\n\n const forceRender = () => setTimestamp(new Date().getTime());\n\n const parseMotion = () => {\n const { motionExpand = '0.3s' } = Theme.get();\n\n return parseFloat(motionExpand.replace('s')) * 1000;\n };\n\n const keys = Object.keys(queue);\n\n return (\n <View className={style.notifications}>\n {keys.sort().map((key, index) => {\n const { defaultMessage, id, visible = false, ...props } = queue[key];\n\n return (\n <Notification\n {...props}\n key={key}\n wide\n onClose={() => handleClose(key)}\n className={styles(style.item, visible && style.visible)}\n style={{ zIndex: keys.length - index }}\n >\n {translate({ id, defaultMessage })}\n </Notification>\n );\n })}\n </View>\n );\n};\n\nNotifications.displayName = 'core:components:Notifications';\n\nNotifications.propTypes = {};\n\nexport { Notifications };\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAEA;AAAoD;AAAA;AAAA;AAAA;AAEpD,MAAMA,UAAU,GAAG,cAAc;AACjC,IAAIC,KAAK,GAAG,CAAC,CAAC;AAEd,MAAMC,aAAa,GAAG,MAAM;EAC1B,MAAM;IAAEC;EAAU,CAAC,GAAG,IAAAC,iBAAS,GAAE;EACjC,MAAM,GAAGC,YAAY,CAAC,GAAG,IAAAC,eAAQ,GAAE;EACnC,MAAM;IACJC,KAAK,EAAE;MAAEC;IAAQ;EACnB,CAAC,GAAG,IAAAC,qBAAQ,GAAE;EAEd,IAAAC,gBAAS,EAAC,MAAM;IACdC,kBAAK,CAACC,SAAS,CAACZ,UAAU,EAAEa,SAAS,CAAC;IACtC,OAAO,MAAMF,kBAAK,CAACG,WAAW,CAACd,UAAU,E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,IAAIc,IAAI,EAAE,CAACC,OAAO,EAAE,CAAC;EAE5D,MAAMO,WAAW,GAAG,MAAM;IACxB,MAAM;MAAEE,YAAY,GAAG;IAAO,CAAC,GAAGC,SAAK,CAACC,GAAG,EAAE;IAE7C,OAAOC,UAAU,CAACH,YAAY,CAACI,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI;EACrD,CAAC;EAED,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACjC,KAAK,CAAC;EAE/B,oBACE,6BAAC,QAAI;IAAC,SAAS,EAAEmC,gCAAK,CAACC;EAAc,GAClCH,IAAI,CAACI,IAAI,EAAE,CAACC,GAAG,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK;IAC/B,MAAM;MAAEC,cAAc;MAAExB,EAAE;MAAEM,OAAO,GAAG,KAAK;MAAE,GAAGmB;IAAM,CAAC,GAAG1C,KAAK,CAACuC,GAAG,CAAC;IAEpE,oBACE,6BAAC,gBAAY,eACPG,KAAK;MACT,GAAG,EAAEH,GAAI;MACT,IAAI;MACJ,OAAO,EAAE,MAAMZ,WAAW,CAACY,GAAG,CAAE;MAChC,SAAS,EAAE,IAAAI,UAAM,EAACR,gCAAK,CAACS,IAAI,EAAErB,OAAO,IAAIY,gCAAK,CAACZ,OAAO,CAAE;MACxD,KAAK,EAAE;QAAEsB,MAAM,EAAEZ,IAAI,CAACa,MAAM,GAAGN;MAAM;IAAE,IAEtCtC,SAAS,CAAC;MAAEe,EAAE;MAAEwB;IAAe,CAAC,CAAC,CACrB;EAEnB,CAAC,CAAC,CACG;AAEX,CAAC;AAAC;AAEFxC,aAAa,CAAC8C,WAAW,GAAG,+BAA+B;AAE3D9C,aAAa,CAAC+C,SAAS,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"Core.Notifications.js","names":["EVENT_NAME","queue","Notifications","translate","useLocale","setTimestamp","useState","value","session","authorization","useStore","useEffect","Event","subscribe","handleAdd","unsubscribe","notification","success","warning","id","Date","getTime","Math","random","toFixed","visible","forceRender","setTimeout","parseMotion","handleClose","motionExpand","Theme","get","parseFloat","replace","keys","Object","style","notifications","sort","map","key","index","defaultMessage","props","styles","item","zIndex","length","displayName","propTypes"],"sources":["../src/Core.Notifications.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Notification, styles, Theme, View } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport style from './Core.Notifications.module.css';\n\nconst EVENT_NAME = 'notification';\nlet queue = {};\n\nconst Notifications = () => {\n const { translate } = useLocale();\n const [, setTimestamp] = useState();\n const {\n value: { session: { authorization } = {} },\n } = useStore();\n\n useEffect(() => {\n Event.subscribe(EVENT_NAME, handleAdd);\n return () => Event.unsubscribe(EVENT_NAME, handleAdd);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n queue = {};\n }, [authorization]);\n\n const handleAdd = (notification) => {\n if (!notification) return;\n\n const { success, warning } = notification;\n const id = `${new Date().getTime()}:${Math.random().toFixed(8)}`;\n\n queue[id] = { ...notification, visible: false };\n forceRender();\n\n setTimeout(() => {\n queue[id].visible = true;\n forceRender();\n }, parseMotion());\n\n if (success || warning) setTimeout(() => handleClose(id), success ? 5000 : 10000);\n\n return;\n };\n\n const handleClose = (id) => {\n if (!queue[id]) return;\n\n setTimestamp(() => {\n queue[id].visible = false;\n\n setTimeout(() => {\n delete queue[id];\n forceRender();\n }, parseMotion());\n\n return new Date().getTime();\n });\n };\n\n const forceRender = () => setTimestamp(new Date().getTime());\n\n const parseMotion = () => {\n const { motionExpand = '0.3s' } = Theme.get();\n\n return parseFloat(motionExpand.replace('s')) * 1000;\n };\n\n const keys = Object.keys(queue);\n\n return (\n <View className={style.notifications}>\n {keys.sort().map((key, index) => {\n const { defaultMessage, id, visible = false, ...props } = queue[key];\n\n return (\n <Notification\n {...props}\n key={key}\n wide\n onClose={() => handleClose(key)}\n className={styles(style.item, visible && style.visible)}\n style={{ zIndex: keys.length - index }}\n >\n {translate({ id, defaultMessage })}\n </Notification>\n );\n })}\n </View>\n );\n};\n\nNotifications.displayName = 'core:components:Notifications';\n\nNotifications.propTypes = {};\n\nexport { Notifications };\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAEA;AAAoD;AAAA;AAAA;AAAA;AAEpD,MAAMA,UAAU,GAAG,cAAc;AACjC,IAAIC,KAAK,GAAG,CAAC,CAAC;AAEd,MAAMC,aAAa,GAAG,MAAM;EAC1B,MAAM;IAAEC;EAAU,CAAC,GAAG,IAAAC,iBAAS,GAAE;EACjC,MAAM,GAAGC,YAAY,CAAC,GAAG,IAAAC,eAAQ,GAAE;EACnC,MAAM;IACJC,KAAK,EAAE;MAAEC,OAAO,EAAE;QAAEC;MAAc,CAAC,GAAG,CAAC;IAAE;EAC3C,CAAC,GAAG,IAAAC,qBAAQ,GAAE;EAEd,IAAAC,gBAAS,EAAC,MAAM;IACdC,kBAAK,CAACC,SAAS,CAACb,UAAU,EAAEc,SAAS,CAAC;IACtC,OAAO,MAAMF,kBAAK,CAACG,WAAW,CAACf,UAAU,EAAEc,SAAS,CAAC;IACrD;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,IAAAH,gBAAS,EAAC,MAAM;IACdV,KAAK,GAAG,CAAC,CAAC;EACZ,CAAC,EAAE,CAACQ,aAAa,CAAC,CAAC;EAEnB,MAAMK,SAAS,GAAIE,YAAY,IAAK;IAClC,IAAI,CAACA,YAAY,EAAE;IAEnB,MAAM;MAAEC,OAAO;MAAEC;IAAQ,CAAC,GAAGF,YAAY;IACzC,MAAMG,EAAE,GAAI,GAAE,IAAIC,IAAI,EAAE,CAACC,OAAO,EAAG,IAAGC,IAAI,CAACC,MAAM,EAAE,CAACC,OAAO,CAAC,CAAC,CAAE,EAAC;IAEhEvB,KAAK,CAACkB,EAAE,CAAC,GAAG;MAAE,GAAGH,YAAY;MAAES,OAAO,EAAE;IAAM,CAAC;IAC/CC,WAAW,EAAE;IAEbC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CAAC,GAAG3C,KAAK,CAACwC,GAAG,CAAC;IAEpE,oBACE,6BAAC,gBAAY,eACPG,KAAK;MACT,GAAG,EAAEH,GAAI;MACT,IAAI;MACJ,OAAO,EAAE,MAAMZ,WAAW,CAACY,GAAG,CAAE;MAChC,SAAS,EAAE,IAAAI,UAAM,EAACR,gCAAK,CAACS,IAAI,EAAErB,OAAO,IAAIY,gCAAK,CAACZ,OAAO,CAAE;MACxD,KAAK,EAAE;QAAEsB,MAAM,EAAEZ,IAAI,CAACa,MAAM,GAAGN;MAAM;IAAE,IAEtCvC,SAAS,CAAC;MAAEgB,EAAE;MAAEwB;IAAe,CAAC,CAAC,CACrB;EAEnB,CAAC,CAAC,CACG;AAEX,CAAC;AAAC;AAEFzC,aAAa,CAAC+C,WAAW,GAAG,+BAA+B;AAE3D/C,aAAa,CAACgD,SAAS,GAAG,CAAC,CAAC"}
@@ -21,6 +21,7 @@ const COMPONENTS = {
21
21
  // @mirai/user
22
22
  booking: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Booking')))),
23
23
  bookingQuery: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/BookingQuery')))),
24
+ checkout: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Checkout')))),
24
25
  profile: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Profile')))),
25
26
  session: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Session')))),
26
27
  signup: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Signup')))),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["COMPONENTS","deals","React","lazy","booking","bookingQuery","profile","session","signup","environment","state","SKELETONS"],"sources":["../../src/components/index.js"],"sourcesContent":["import React from 'react';\n\nimport deals from './finder/Deals.skeleton';\nimport booking from './user/Booking.skeleton';\nimport bookingQuery from './user/BookingQuery.skeleton';\nimport profile from './user/Profile.skeleton';\nimport session from './user/Session.skeleton';\nimport signup from './user/Signup.skeleton';\n\nconst COMPONENTS = {\n // @mirai/finder\n // finder: React.lazy(() => import('./finder/Finder')),\n deals: React.lazy(() => import('./finder/Deals')),\n\n // @mirai/user\n booking: React.lazy(() => import('./user/Booking')),\n bookingQuery: React.lazy(() => import('./user/BookingQuery')),\n profile: React.lazy(() => import('./user/Profile')),\n session: React.lazy(() => import('./user/Session')),\n signup: React.lazy(() => import('./user/Signup')),\n\n // Internal\n environment: React.lazy(() => import('./__internal__/Environment')),\n state: React.lazy(() => import('./__internal__/State')),\n};\n\nconst SKELETONS = {\n // @mirai/finder\n deals,\n\n // @mirai/user\n booking,\n bookingQuery,\n profile,\n session,\n signup,\n\n // Internal\n};\n\nexport { COMPONENTS, SKELETONS };\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAA4C;AAAA;AAAA;AAE5C,MAAMA,UAAU,GAAG;EACjB;EACA;EACAC,KAAK,eAAEC,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EAEjD;EACAC,OAAO,eAAEF,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDE,YAAY,eAAEH,cAAK,CAACC,IAAI,CAAC,mEAAa,qBAAqB,GAAC,CAAC;EAC7DG,OAAO,eAAEJ,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDI,OAAO,eAAEL,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDK,MAAM,eAAEN,cAAK,CAACC,IAAI,CAAC,mEAAa,eAAe,GAAC,CAAC;EAEjD;EACAM,WAAW,eAAEP,cAAK,CAACC,IAAI,CAAC,mEAAa,4BAA4B,GAAC,CAAC;EACnEO,KAAK,eAAER,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC;AACxD,CAAC;AAAC;AAEF,MAAMQ,SAAS,GAAG;EAChB;EACAV,KAAK,EAALA,cAAK;EAEL;EACAG,OAAO,EAAPA,gBAAO;EACPC,YAAY,EAAZA,qBAAY;EACZC,OAAO,EAAPA,gBAAO;EACPC,OAAO,EAAPA,gBAAO;EACPC,MAAM,EAANA;;EAEA;AACF,CAAC;AAAC"}
1
+ {"version":3,"file":"index.js","names":["COMPONENTS","deals","React","lazy","booking","bookingQuery","checkout","profile","session","signup","environment","state","SKELETONS"],"sources":["../../src/components/index.js"],"sourcesContent":["import React from 'react';\n\nimport deals from './finder/Deals.skeleton';\nimport booking from './user/Booking.skeleton';\nimport bookingQuery from './user/BookingQuery.skeleton';\nimport profile from './user/Profile.skeleton';\nimport session from './user/Session.skeleton';\nimport signup from './user/Signup.skeleton';\n\nconst COMPONENTS = {\n // @mirai/finder\n // finder: React.lazy(() => import('./finder/Finder')),\n deals: React.lazy(() => import('./finder/Deals')),\n\n // @mirai/user\n booking: React.lazy(() => import('./user/Booking')),\n bookingQuery: React.lazy(() => import('./user/BookingQuery')),\n checkout: React.lazy(() => import('./user/Checkout')),\n profile: React.lazy(() => import('./user/Profile')),\n session: React.lazy(() => import('./user/Session')),\n signup: React.lazy(() => import('./user/Signup')),\n\n // Internal\n environment: React.lazy(() => import('./__internal__/Environment')),\n state: React.lazy(() => import('./__internal__/State')),\n};\n\nconst SKELETONS = {\n // @mirai/finder\n deals,\n\n // @mirai/user\n booking,\n bookingQuery,\n profile,\n session,\n signup,\n\n // Internal\n};\n\nexport { COMPONENTS, SKELETONS };\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAA4C;AAAA;AAAA;AAE5C,MAAMA,UAAU,GAAG;EACjB;EACA;EACAC,KAAK,eAAEC,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EAEjD;EACAC,OAAO,eAAEF,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDE,YAAY,eAAEH,cAAK,CAACC,IAAI,CAAC,mEAAa,qBAAqB,GAAC,CAAC;EAC7DG,QAAQ,eAAEJ,cAAK,CAACC,IAAI,CAAC,mEAAa,iBAAiB,GAAC,CAAC;EACrDI,OAAO,eAAEL,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDK,OAAO,eAAEN,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDM,MAAM,eAAEP,cAAK,CAACC,IAAI,CAAC,mEAAa,eAAe,GAAC,CAAC;EAEjD;EACAO,WAAW,eAAER,cAAK,CAACC,IAAI,CAAC,mEAAa,4BAA4B,GAAC,CAAC;EACnEQ,KAAK,eAAET,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC;AACxD,CAAC;AAAC;AAEF,MAAMS,SAAS,GAAG;EAChB;EACAX,KAAK,EAALA,cAAK;EAEL;EACAG,OAAO,EAAPA,gBAAO;EACPC,YAAY,EAAZA,qBAAY;EACZE,OAAO,EAAPA,gBAAO;EACPC,OAAO,EAAPA,gBAAO;EACPC,MAAM,EAANA;;EAEA;AACF,CAAC;AAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _user = require("@mirai/user");
8
+ var _default = _user.Checkout;
9
+ exports.default = _default;
10
+ //# sourceMappingURL=Checkout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkout.js","names":["Checkout"],"sources":["../../../src/components/user/Checkout.jsx"],"sourcesContent":["import { Checkout } from '@mirai/user';\n\nexport default Checkout;\n"],"mappings":";;;;;;AAAA;AAAuC,eAExBA,cAAQ;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",
package/public/index.html CHANGED
@@ -30,14 +30,13 @@
30
30
  <div data-mirai-component="session"></div>
31
31
  <div data-mirai-component="session">
32
32
  <div data-ghost>
33
- <p class="login">Login</p>
34
- <div>
35
- <p class="account">{{firstName}} - {{email}}</p>
36
- </div>
33
+ <p class="login">Login</p>
34
+ <div>
35
+ <p class="account">{{firstName}} - {{email}}</p>
36
+ </div>
37
37
  </div>
38
38
  </div>
39
- <div data-mirai-component="bookingQuery">
40
- </div>
39
+ <div data-mirai-component="bookingQuery"></div>
41
40
  <div data-mirai-component="environment" data-mobile="false"></div>
42
41
  <div data-mirai-component="state"></div>
43
42
  </nav>
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>@mirai/core</title>
7
+ <link rel="stylesheet" href="{url}/index.css" rel="preload" defer />
8
+ <link rel="stylesheet" href="{url}/site/customer.css" />
9
+ <link rel="stylesheet" href="{url}/site/core.css" />
10
+ </head>
11
+ <body>
12
+ <div data-mirai-id="501404" data-hotel="100376545" data-type="chain" data-locale="en-GB"></div>
13
+
14
+ <section class="checkout">
15
+ <div data-mirai-component="checkout"></div>
16
+ </section>
17
+
18
+ <script type="module" defer src="{url}/index.js"></script>
19
+ </body>
20
+ </html>
package/site/index.html CHANGED
@@ -22,8 +22,9 @@
22
22
  <div data-ghost>
23
23
  <p class="login">Login Ghost</p>
24
24
  <p class="account">{{firstName}} - Ghost}</p>
25
+ </div>
25
26
  </div>
26
- </div>
27
+
27
28
  <div data-mirai-component="bookingQuery"></div>
28
29
  <div data-mirai-component="bookingQuery">
29
30
  <button data-ghost class="book">My Booking Ghost</button>
@@ -41,10 +42,13 @@
41
42
  <div data-mirai-component="deals" data-id="205800"></div>
42
43
  </section> -->
43
44
  <section class="links">
44
- <a href="{url}/site/deals/index.html">Deals</a>
45
+ <a href="{url}/site/signup/index.html">Signup</a>
45
46
  <a href="{url}/site/profile/index.html">Profile</a>
46
- <a href="{url}/site/signup/index.html">Singup</a>
47
+ <!-- -->
48
+ <a href="{url}/site/deals/index.html">Deals</a>
49
+ <!-- -->
47
50
  <a href="{url}/site/booking/index.html">Booking</a>
51
+ <a href="{url}/site/checkout/index.html">Checkout</a>
48
52
  </section>
49
53
 
50
54
  <footer>Mirai Tech - Copyright, 2023</footer>