infra: add linting and formatting for js projects (#230)
* wip * wip * wip * format * wip(mobile): lint and format * cleanup * nits * nits * idiomatic react * nit * format all root files
This commit was merged in pull request #230.
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
||||
import { ActivityIndicator, View } from "react-native";
|
||||
import { useAuthStore } from "@/stores/auth-store";
|
||||
import { SignInScreen } from "@/features/auth/SignInScreen";
|
||||
import { NetworkListScreen } from "@/features/networks/NetworkListScreen";
|
||||
import { StreamListScreen } from "@/features/streams/StreamListScreen";
|
||||
import { NewStreamScreen } from "@/features/streams/NewStreamScreen";
|
||||
import { StreamViewScreen } from "@/features/stream-view/StreamViewScreen";
|
||||
import { HuddleScreen } from "@/features/huddle/HuddleScreen";
|
||||
import { SettingsScreen } from "@/features/settings/SettingsScreen";
|
||||
import { AccountScreen } from "@/features/settings/AccountScreen";
|
||||
import type { RootStackParamList } from "./types";
|
||||
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
||||
import { ActivityIndicator, View } from 'react-native';
|
||||
import { useAuthStore } from '@/stores/auth-store';
|
||||
import { SignInScreen } from '@/features/auth/SignInScreen';
|
||||
import { NetworkListScreen } from '@/features/networks/NetworkListScreen';
|
||||
import { StreamListScreen } from '@/features/streams/StreamListScreen';
|
||||
import { NewStreamScreen } from '@/features/streams/NewStreamScreen';
|
||||
import { StreamViewScreen } from '@/features/stream-view/StreamViewScreen';
|
||||
import { HuddleScreen } from '@/features/huddle/HuddleScreen';
|
||||
import { SettingsScreen } from '@/features/settings/SettingsScreen';
|
||||
import { AccountScreen } from '@/features/settings/AccountScreen';
|
||||
import type { RootStackParamList } from './types';
|
||||
|
||||
const Stack = createNativeStackNavigator<RootStackParamList>();
|
||||
|
||||
export function RootNavigator() {
|
||||
const status = useAuthStore((s) => s.status);
|
||||
|
||||
if (status === "idle" || status === "restoring") {
|
||||
if (status === 'idle' || status === 'restoring') {
|
||||
return (
|
||||
<View className="flex-1 items-center justify-center bg-background">
|
||||
<ActivityIndicator />
|
||||
@@ -24,7 +24,7 @@ export function RootNavigator() {
|
||||
);
|
||||
}
|
||||
|
||||
if (status === "unauthenticated") {
|
||||
if (status === 'unauthenticated') {
|
||||
return (
|
||||
<Stack.Navigator screenOptions={{ headerShown: false }}>
|
||||
<Stack.Screen name="SignIn" component={SignInScreen} />
|
||||
@@ -42,17 +42,17 @@ export function RootNavigator() {
|
||||
<Stack.Screen
|
||||
name="StreamView"
|
||||
component={StreamViewScreen}
|
||||
options={{ animation: "fade", gestureEnabled: false }}
|
||||
options={{ animation: 'fade', gestureEnabled: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Huddle"
|
||||
component={HuddleScreen}
|
||||
options={{ animation: "slide_from_bottom", gestureEnabled: false }}
|
||||
options={{ animation: 'slide_from_bottom', gestureEnabled: false }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="NewStream"
|
||||
component={NewStreamScreen}
|
||||
options={{ animation: "slide_from_bottom" }}
|
||||
options={{ animation: 'slide_from_bottom' }}
|
||||
/>
|
||||
<Stack.Screen name="Settings" component={SettingsScreen} />
|
||||
<Stack.Screen name="Account" component={AccountScreen} />
|
||||
|
||||
Reference in New Issue
Block a user