mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
refactor(FE): Conditionally render sampling and result sections
This commit is contained in:
@@ -229,9 +229,10 @@ const UniformityDetailsPreview = ({
|
|||||||
{/* Form Section */}
|
{/* Form Section */}
|
||||||
<div className='divider mt-3.5'></div>
|
<div className='divider mt-3.5'></div>
|
||||||
<section className='w-full px-6'>
|
<section className='w-full px-6'>
|
||||||
{uniformity_details && uniformity_details.length > 0 ? (
|
{info_umum || sampling || result ? (
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
{/* Sampling and Range */}
|
{/* Sampling and Range */}
|
||||||
|
{sampling && (
|
||||||
<div className=''>
|
<div className=''>
|
||||||
<p className='text-sm font-medium mb-5'>Sampling and Range</p>
|
<p className='text-sm font-medium mb-5'>Sampling and Range</p>
|
||||||
<Table<DetailOptionType>
|
<Table<DetailOptionType>
|
||||||
@@ -244,7 +245,10 @@ const UniformityDetailsPreview = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Result */}
|
{/* Result */}
|
||||||
|
{result && (
|
||||||
<div className=''>
|
<div className=''>
|
||||||
<p className='text-sm font-medium mb-5'>Result</p>
|
<p className='text-sm font-medium mb-5'>Result</p>
|
||||||
<Table<DetailOptionType>
|
<Table<DetailOptionType>
|
||||||
@@ -257,8 +261,9 @@ const UniformityDetailsPreview = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Body Weight Details Button */}
|
{!uniformity_details || uniformity_details.length === 0 ? (
|
||||||
<div className='mt-4'>
|
<div className='mt-4'>
|
||||||
<Button
|
<Button
|
||||||
type='button'
|
type='button'
|
||||||
@@ -269,9 +274,7 @@ const UniformityDetailsPreview = ({
|
|||||||
{isLoading ? 'Loading...' : 'Show Body Weight Details'}
|
{isLoading ? 'Loading...' : 'Show Body Weight Details'}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{/*{!uniformity_details || uniformity_details.length === 0 ? (
|
) : null}
|
||||||
<></>
|
|
||||||
) : null}*/}
|
|
||||||
|
|
||||||
{/* Body Weight Details */}
|
{/* Body Weight Details */}
|
||||||
{uniformity_details && uniformity_details.length > 0 && (
|
{uniformity_details && uniformity_details.length > 0 && (
|
||||||
|
|||||||
Reference in New Issue
Block a user