change design and responsive & pay & detail account & success pay & faield pay & doctor id
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import { useState } from "react";
|
||||
import Detail from "./detail";
|
||||
import Payment from "./payment";
|
||||
import Detail from "./detail";
|
||||
|
||||
function Information() {
|
||||
function Information({ typePay, setTypePay, setIsPay, isPay }) {
|
||||
|
||||
const [isForAnother, setIsForAnother] = useState(false)
|
||||
const [typePay, setTypePay] = useState('success');
|
||||
const [isPay, setIsPay] = useState(true);
|
||||
const [isForAnother, setIsForAnother] = useState(false);
|
||||
const [fade, setFade] = useState(false);
|
||||
|
||||
const fadeElement = (func) => {
|
||||
@@ -24,8 +20,9 @@ function Information() {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`w-[59%] opacity-page p-[24px] bg-[#FFF] border border-solid border-[#EFEFEF] rounded-[8px]
|
||||
`}
|
||||
className={`w-full lg:w-[59%] opacity-page bg-[#FFF] border border-solid border-[#EFEFEF]
|
||||
rounded-[8px] p-[12px] sm:p-[16px] md:p-[20px] lg:p-[24px]
|
||||
${typePay === 'success' || typePay === 'failed' ? 'bg-transparent border-transparent md:bg-[#FFF] md:border-[#EFEFEF]' : ''}`}
|
||||
>
|
||||
<div className={`transition-opacity !duration-300 ease-in ${fade ? '!opacity-0' : '!opacity-100'}`}>
|
||||
{isPay ?
|
||||
|
||||
Reference in New Issue
Block a user