fix: add condition payment method
This commit is contained in:
parent
526aaf5078
commit
6d787688e4
|
@ -1,6 +1,5 @@
|
|||
import React, {useEffect, useRef, useState} from 'react';
|
||||
import {Badge, Divider, Tag} from "antd";
|
||||
import Image from "next/image";
|
||||
import {Badge, Divider, Tag, Image} from "antd";
|
||||
import {DownCircleOutlined} from "@ant-design/icons";
|
||||
import autoAnimate from "@formkit/auto-animate";
|
||||
import { format } from "date-fns";
|
||||
|
@ -43,9 +42,13 @@ const Transaction = ({show, orderData, location}) => {
|
|||
<span className={'font-semibold'}>Total Harga</span>
|
||||
<span className={'text-[#FF6103]'}>Rp.{orderData?.total}</span>
|
||||
</div>
|
||||
{orderData?.payment_method?.toLowerCase() == "gopay" && (
|
||||
{orderData?.payment_method?.toLowerCase() == "gopay" ? (
|
||||
<div>
|
||||
<Image src={'/assets/images/gopay.svg'} width={81} height={17}/>
|
||||
<Image src={'/assets/images/gopay.svg'} preview={false} />
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<Image src={'/assets/images/astrapay.png'} preview={false} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user