-
- {sections
- .filter((s) => s.value > 0)
- .map(({ name, value }, index) => (
-
-
- 0 ? value : -15}%`} // Adjust to center the text below the divisor
- zIndex='2'
- >
- {`${name}`}
-
-
- ))}
-
- );
-};
diff --git a/src/components/Elements/SaleInfoPanel/index.module.scss b/src/components/Elements/SaleInfoPanel/index.module.scss
index 60162965..2f17047d 100644
--- a/src/components/Elements/SaleInfoPanel/index.module.scss
+++ b/src/components/Elements/SaleInfoPanel/index.module.scss
@@ -2,12 +2,11 @@
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto auto;
- gap: 2em;
- padding: 1.5em;
- border-radius: .5em;
- box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.2);
+ grid-column-gap: 0.75rem;
+ grid-row-gap: 0;
+ margin-top: 1rem;
}
.gridItem {
- color: #181336
-}
\ No newline at end of file
+ color: #181336;
+}
diff --git a/src/components/Elements/SaleInfoPanel/index.tsx b/src/components/Elements/SaleInfoPanel/index.tsx
index 17495ce3..e625eaa8 100644
--- a/src/components/Elements/SaleInfoPanel/index.tsx
+++ b/src/components/Elements/SaleInfoPanel/index.tsx
@@ -12,6 +12,7 @@ import { useCoretimeApi } from '@/contexts/apis';
import { SaleInfo, SalePhase } from '@/models';
import { DetailCard } from './DetailCard';
+import styles from './index.module.scss';
interface SaleInfoGridProps {
saleInfo: SaleInfo;
@@ -43,14 +44,7 @@ export const SaleInfoPanel = ({
};
return (
-