Skip to content

Commit 53b05d6

Browse files
yjoseasdolo
authored andcommitted
refactor: updates core folder to lib
1 parent 717b821 commit 53b05d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+45
-45
lines changed

docs/src/content/docs/guides/authentication.mdx

Lines changed: 2 additions & 2 deletions

docs/src/content/docs/recipes/sentry-setup.mdx

Lines changed: 1 addition & 1 deletion

docs/src/content/docs/testing/unit-testing.mdx

Lines changed: 1 addition & 1 deletion

docs/src/content/docs/ui-and-theme/Forms.mdx

Lines changed: 1 addition & 1 deletion

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/common/client.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Env } from '@env';
21
import axios from 'axios';
32

3+
import { Env } from '@/lib/env';
4+
45
export const client = axios.create({
56
baseURL: Env.API_URL,
67
});

src/api/common/interceptors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AxiosError, InternalAxiosRequestConfig } from 'axios';
22

3-
import { signIn, useAuth } from '@/core';
3+
import { signIn, useAuth } from '@/lib';
44

55
import { client } from './client';
66
import { toCamelCase, toSnakeCase } from './utils';

src/app/(app)/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Link, Redirect, SplashScreen, Tabs } from 'expo-router';
22
import { useCallback, useEffect } from 'react';
33

44
import { useAuth } from '@/components/providers/auth';
5-
import { useIsFirstTime } from '@/core';
5+
import { useIsFirstTime } from '@/lib';
66
import { Pressable, Text } from '@/ui';
77
import {
88
Feed as FeedIcon,

src/app/(app)/settings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { Item } from '@/components/settings/item';
1111
import { ItemsContainer } from '@/components/settings/items-container';
1212
import { LanguageItem } from '@/components/settings/language-item';
1313
import { ThemeItem } from '@/components/settings/theme-item';
14-
import { translate } from '@/core';
15-
import { Env } from '@/core/env';
14+
import { translate } from '@/lib';
15+
import { Env } from '@/lib/env';
1616
import { colors, FocusAwareStatusBar, ScrollView, Text, View } from '@/ui';
1717
import { Website } from '@/ui/icons';
1818

src/app/+html.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { ScrollViewStyleReset } from 'expo-router/html';
2+
import { type ReactNode } from 'react';
23

34
// This file is web-only and used to configure the root HTML for every
45
// web page during static rendering.
56
// The contents of this function only run in Node.js environments and
67
// do not have access to the DOM or browser APIs.
7-
export default function Root({ children }: { children: React.ReactNode }) {
8+
export default function Root({ children }: { children: ReactNode }) {
89
return (
910
<html lang="en">
1011
<head>

0 commit comments

Comments
 (0)