CustomAmountChoiceBottomSheet: update UI

This commit is contained in:
2025-12-17 01:04:45 +03:00
parent 76a06cc3ee
commit c369807f40
6 changed files with 157 additions and 47 deletions

View File

@@ -16,6 +16,7 @@ interface ProBottomSheetProps {
initialSnap?: number;
className?: string;
themeName?: "light" | "dark";
contentStyle?: React.CSSProperties;
}
export function ProBottomSheet({
@@ -30,6 +31,7 @@ export function ProBottomSheet({
snapPoints = [500],
initialSnap = 0,
className = "",
contentStyle = {},
}: ProBottomSheetProps) {
const [currentSnap, setCurrentSnap] = useState(initialSnap);
const [isDragging, setIsDragging] = useState(false);
@@ -231,12 +233,13 @@ export function ProBottomSheet({
backdropFilter: themeName === "dark" ? "blur(8px)" : "none",
};
const contentStyle: React.CSSProperties = {
const contentWrapperStyle: React.CSSProperties = {
flex: 1,
overflow: "auto",
padding: "0 20px",
backgroundColor: themeName === "dark" ? "#0a0a0a" : "#ffffff",
color: themeName === "dark" ? "#ffffff" : "#000000",
...contentStyle,
};
const closeButtonStyle: React.CSSProperties = {
@@ -315,7 +318,7 @@ export function ProBottomSheet({
</div>
)}
<div style={contentStyle}>{children}</div>
<div style={contentWrapperStyle}>{children}</div>
</div>
</>
);