mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: format
This commit is contained in:
@@ -53,29 +53,29 @@ function SettingsSheetFrame({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
}) {
|
}) {
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{flex: 1}} backgroundColor='black'>
|
<View style={{ flex: 1 }} backgroundColor="black">
|
||||||
<Sheet.Frame
|
<Sheet.Frame
|
||||||
backgroundColor="$playerSettingsBackground"
|
backgroundColor="$playerSettingsBackground"
|
||||||
padding="$5"
|
padding="$5"
|
||||||
left={insets.left}
|
left={insets.left}
|
||||||
right={insets.right}
|
right={insets.right}
|
||||||
gap="$4"
|
gap="$4"
|
||||||
>
|
>
|
||||||
{isLoading && (
|
{isLoading && (
|
||||||
<Spinner
|
<Spinner
|
||||||
size="large"
|
size="large"
|
||||||
color="$loadingIndicator"
|
color="$loadingIndicator"
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!isLoading && children}
|
{!isLoading && children}
|
||||||
</Sheet.Frame>
|
</Sheet.Frame>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,11 +88,16 @@ function SettingsHeader({
|
|||||||
title: string;
|
title: string;
|
||||||
rightButton?: React.ReactNode;
|
rightButton?: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<View style={{ paddingRight: insets.right }} flexDirection="row" alignItems="center" gap="$4">
|
<View
|
||||||
|
style={{ paddingRight: insets.right }}
|
||||||
|
flexDirection="row"
|
||||||
|
alignItems="center"
|
||||||
|
gap="$4"
|
||||||
|
>
|
||||||
{icon}
|
{icon}
|
||||||
<PlayerText flexGrow={1}>{title}</PlayerText>
|
<PlayerText flexGrow={1}>{title}</PlayerText>
|
||||||
{rightButton}
|
{rightButton}
|
||||||
|
Reference in New Issue
Block a user