= ({
}
return (
- <>
+
{trips?.trip_status === 2 ? (
);
};
diff --git a/src/pages/Trip/components/MainTripBody.tsx b/src/pages/Trip/components/MainTripBody.tsx
index 1b401b8..538b17f 100644
--- a/src/pages/Trip/components/MainTripBody.tsx
+++ b/src/pages/Trip/components/MainTripBody.tsx
@@ -1,7 +1,6 @@
import { ProCard } from '@ant-design/pro-components';
import { useModel } from '@umijs/max';
import { Flex, Grid } from 'antd';
-import { useState } from 'react';
import HaulTable from './HaulTable';
import TripCostTable from './TripCost';
import TripCrews from './TripCrews';
@@ -23,7 +22,6 @@ const MainTripBody: React.FC = ({
// console.log('tripInfo:', tripInfo);
const { useBreakpoint } = Grid;
const screens = useBreakpoint();
- const [isResponsive, setIsResponsive] = useState(false);
const { data, getApi } = useModel('getTrip');
const tripCosts = Array.isArray(tripInfo?.trip_cost)
? tripInfo.trip_cost
@@ -77,11 +75,14 @@ const MainTripBody: React.FC = ({
padding: 0,
paddingInline: 0,
gap: 10,
+ backgroundColor: 'transparent',
}}
>
= ({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
- borderBottom: '1px solid #f0f0f0',
+ // borderBottom: '1px solid #f0f0f0',
}}
title="Chi phí chuyến đi"
style={{ minHeight: 300 }}
diff --git a/src/pages/Trip/components/TripFishingGear.tsx b/src/pages/Trip/components/TripFishingGear.tsx
index 397a1ec..377d2c3 100644
--- a/src/pages/Trip/components/TripFishingGear.tsx
+++ b/src/pages/Trip/components/TripFishingGear.tsx
@@ -33,7 +33,7 @@ const TripFishingGearTable: React.FC = ({
showTotal: (total, range) => `${range[0]}-${range[1]} trên ${total}`,
}}
options={false}
- // bordered
+ // bordered
size="middle"
scroll={{ x: '100%' }}
style={{ flex: 1 }}
diff --git a/src/pages/Trip/index.tsx b/src/pages/Trip/index.tsx
index c992832..9bf7fb9 100644
--- a/src/pages/Trip/index.tsx
+++ b/src/pages/Trip/index.tsx
@@ -49,10 +49,16 @@ const DetailTrip = () => {
(
+ {data ? data.name : 'Chuyến đi'}
+
+ ),
tags: ,
}}
+ content={null}
loading={isLoading}
+ ghost
extra={[
{
defaultMessage: 'Cảnh báo',
})}
colSpan={{ xs: 24, md: 24, lg: 5 }}
- bodyStyle={{ paddingInline: 0, paddingBlock: 8 }}
+ bodyStyle={{ paddingInline: 0, paddingBlock: 0 }}
bordered
+ // style={{ borderBlockEnd: 'none'}}
>
{data ? (