Skip to content

Commit

Permalink
chore: fix border row in detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
reza-bm committed Dec 4, 2023
1 parent c333875 commit 7815bc1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions components/detail/SwapDetailSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function SwapDetailSummary(props: PropsType) {
<ButtonCopyIcon text={id} />
</p>
<div className="pt-35 px-20">
{columns.map((col) => {
{columns.map((col, index) => {
const DetailValueComponent = col.component;
const { title, id } = col;
return (
Expand All @@ -33,7 +33,7 @@ function SwapDetailSummary(props: PropsType) {
<DetailValueComponent column={col} details={details} />
)}
</div>
{title !== 'Initiation Date And Time' && (
{index !== columns.length - 1 && (
<div className="h-[0.5px] w-full bg-neutral-300"></div>
)}
</>
Expand Down
27 changes: 16 additions & 11 deletions components/detail/SwapSteps/SwapStepItemExpanded.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,27 @@ function SwapStepItemExpanded(props: SwapStepItemExpandedProps) {
</div>

<div className="pt-25">
{columns.map((col) => {
{columns.map((col, index) => {
const StepValueComponent = col.component;
const { title, id } = col;
return (
<div key={`column-${id}`} className="grid grid-cols-7">
<div className="text-16 font-medium p-16 pl-0 col-span-3 text-primary-500 flex items-center">
{`${title} : `}
<>
<div key={`column-${id}`} className="grid grid-cols-7">
<div className="text-16 font-medium p-16 pl-0 col-span-3 text-primary-500 flex items-center">
{`${title} : `}
</div>
{StepValueComponent && (
<StepValueComponent
firstStep={firstStep}
column={col}
step={step}
/>
)}
</div>
{StepValueComponent && (
<StepValueComponent
firstStep={firstStep}
column={col}
step={step}
/>
{index !== columns.length - 1 && (
<div className="h-[0.5px] w-full bg-neutral-300"></div>
)}
</div>
</>
);
})}
</div>
Expand Down

0 comments on commit 7815bc1

Please sign in to comment.