fix: get data name location and address
This commit is contained in:
parent
d9eae27d20
commit
e4d533dd18
|
@ -2,19 +2,15 @@ import React from 'react';
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import {Divider} from "antd";
|
import {Divider} from "antd";
|
||||||
|
|
||||||
const Location = () => {
|
const Location = ({location}) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className={'flex flex-col items-center gap-4'}>
|
<div className={'flex flex-col items-center gap-4'}>
|
||||||
<Image src={'/assets/images/location.svg'} width={80} height={80} alt={'location'}/>
|
<Image src={'/assets/images/location.svg'} width={80} height={80} alt={'location'}/>
|
||||||
|
|
||||||
<div className={'text-center'}>
|
<div className={'text-center'}>
|
||||||
<h1 className={'font-bold'}>LOCKEY Lippo Mall Kemang</h1>
|
<h1 className={'font-bold'}>{location?.data?.[0]?.name}</h1>
|
||||||
<p className={'text-sm text-[#B7BAC2]'}>Jl. Pangeran Antasari No.36, Bangka, Kec. Mampang Prpt.,
|
<p className={'text-sm text-[#B7BAC2]'}>{location?.data?.[0]?.address}</p>
|
||||||
Kota, Daerah
|
|
||||||
Khusus Ibukota
|
|
||||||
Jakarta
|
|
||||||
12150</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ const FlashScreen = observer(() => {
|
||||||
if (isAvailable) {
|
if (isAvailable) {
|
||||||
localStorage.setItem("lockey_id", isAvailable?.id)
|
localStorage.setItem("lockey_id", isAvailable?.id)
|
||||||
localStorage.setItem("location_name", isAvailable?.location_name);
|
localStorage.setItem("location_name", isAvailable?.location_name);
|
||||||
|
localStorage.setItem("price", isAvailable?.price)
|
||||||
store.lockey.createOrder({
|
store.lockey.createOrder({
|
||||||
lockeyId: isAvailable.id
|
lockeyId: isAvailable.id
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user