Fix: Data-source S3 page style (#12255)

### What problem does this PR solve?

Fix: Data-source S3 page style

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-12-29 09:46:35 +08:00
committed by GitHub
parent 2114b9e3ad
commit 647fb115a0
13 changed files with 256 additions and 69 deletions

View File

@ -71,6 +71,9 @@ export function Segmented({
const [selectedValue, setSelectedValue] = React.useState<
SegmentedValue | undefined
>(value);
React.useEffect(() => {
setSelectedValue(value);
}, [value]);
const handleOnChange = (e: SegmentedValue) => {
if (onChange) {
onChange(e);