refactor(app): restructure settings with modular section navigation
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { AdaptiveModalSheet } from "@/components/adaptive-modal-sheet";
|
||||
import { PairDeviceSection } from "@/desktop/components/pair-device-section";
|
||||
|
||||
export interface PairDeviceModalProps {
|
||||
visible: boolean;
|
||||
onClose: () => void;
|
||||
testID?: string;
|
||||
}
|
||||
|
||||
export function PairDeviceModal({ visible, onClose, testID }: PairDeviceModalProps) {
|
||||
return (
|
||||
<AdaptiveModalSheet
|
||||
title="Pair a device"
|
||||
visible={visible}
|
||||
onClose={onClose}
|
||||
snapPoints={["82%", "94%"]}
|
||||
desktopMaxWidth={640}
|
||||
testID={testID}
|
||||
>
|
||||
<PairDeviceSection />
|
||||
</AdaptiveModalSheet>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user