Skip to content

Commit

Permalink
fix: fix Warning, Require cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Aug 11, 2023
1 parent faa3a80 commit f899849
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/navigation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './focus-aware-status-bar';
export * from './root-navigator';
3 changes: 1 addition & 2 deletions src/screens/feed/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import React from 'react';

import type { Post } from '@/api';
import { usePosts } from '@/api';
import { FocusAwareStatusBar } from '@/navigation';
import { EmptyList, Text, View } from '@/ui';
import { EmptyList, FocusAwareStatusBar, Text, View } from '@/ui';

import { Card } from './card';

Expand Down
3 changes: 1 addition & 2 deletions src/screens/feed/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { useRoute } from '@react-navigation/native';
import * as React from 'react';

import { usePost } from '@/api';
import { FocusAwareStatusBar } from '@/navigation';
import type { RouteProp } from '@/navigation/types';
import { ActivityIndicator, Text, View } from '@/ui';
import { ActivityIndicator, FocusAwareStatusBar, Text, View } from '@/ui';

export const Post = () => {
const { params } = useRoute<RouteProp<'Post'>>();
Expand Down
2 changes: 1 addition & 1 deletion src/screens/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import { useAuth } from '@/core';
import { useSoftKeyboardEffect } from '@/core/keyboard';
import { FocusAwareStatusBar } from '@/navigation';
import { FocusAwareStatusBar } from '@/ui';

import type { LoginFormProps } from './login-form';
import { LoginForm } from './login-form';
Expand Down
3 changes: 1 addition & 2 deletions src/screens/onboarding/onboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';

import { useIsFirstTime } from '@/core/hooks';
import { FocusAwareStatusBar } from '@/navigation';
import { Button, SafeAreaView, Text, View } from '@/ui';
import { Button, FocusAwareStatusBar, SafeAreaView, Text, View } from '@/ui';

import { Cover } from './cover';
export const Onboarding = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/screens/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import * as React from 'react';

import { useAuth } from '@/core';
import { translate } from '@/core';
import { FocusAwareStatusBar } from '@/navigation';
import { ScrollView, Text, View } from '@/ui';
import { FocusAwareStatusBar, ScrollView, Text, View } from '@/ui';
import { Github, Rate, Share, Support, Website } from '@/ui/icons';
import colors from '@/ui/theme/colors';

Expand Down
3 changes: 1 addition & 2 deletions src/screens/style/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';

import { FocusAwareStatusBar } from '@/navigation';
import { ScrollView, View } from '@/ui';
import { FocusAwareStatusBar, ScrollView, View } from '@/ui';

import { ButtonVariants } from './button-variants';
import { ColorVariants } from './color-variants';
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/ui/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './core';
export * from './error-handler';
export * from './focus-aware-status-bar';
export * from './icons';
export * from './screen';
export * from './theme';
Expand Down

0 comments on commit f899849

Please sign in to comment.