Skip to content

Commit

Permalink
cleanup project code
Browse files Browse the repository at this point in the history
  • Loading branch information
kibagateaux committed Jan 5, 2024
1 parent ee7edae commit 9be7a62
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 96 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"test:ci": "jest --ci --colors",
"postinstall": "patch-package && rn-nodeify --install all --hack",
"android": "APP_VARIANT=development npx expo run:android -d --variant developmentDebug",
"install:android": "source .env; APP_VARIANT=production npx eas build --local --platform android -e staging --output app.apk; adb install ./app.apk",
"deploy:secrets": "eas secret:push --scope jinni-health --env-file ./.env",
"install:android": "source .env && npx eas build --local --platform android -e $APP_VARIANT --output app.apk; adb install ./app.apk",
"ios": "expo run:ios",
"lint:dry": "eslint ./src/ .eslintrc.js --ext .ts,.tsx && prettier ./src/ --config .prettierrc --check",
"lint:fix": "eslint ./src/ --fix .eslintrc.js --ext .ts,.tsx && prettier ./src/ --config .prettierrc --write --ignore-unknown"
Expand Down
2 changes: 0 additions & 2 deletions src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { WidgetConfig } from 'types/UserConfig';
import { getIconForWidget } from 'utils/rendering';

export default function HomeLayout() {
// has to be in nested _layout https://docs.expo.dev/router/reference/authentication/#after
// useDeepLinks();
const homeConfig = useHomeConfig();
const [tabConfig, setTabConfig] = useState<WidgetConfig[]>([]);

Expand Down
7 changes: 6 additions & 1 deletion src/app/inventory/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import { Stack } from 'expo-router';
export default function Layout() {
return (
<Stack>
<Stack.Screen name="index" />
<Stack.Screen
name="index"
options={{
title: 'Inventory',
}}
/>
<Stack.Screen name="[item]" />
</Stack>
);
Expand Down
1 change: 1 addition & 0 deletions src/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.expo.dev/versions/latest/sdk/svg/

### Convert PNG -> SVGs -> RN Component

https://svgtrace.com/png-to-svg
https://react-svgr.com/playground/?native=true&typescript=true

Expand Down
43 changes: 43 additions & 0 deletions src/assets/avatars/red-yellow-egg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import * as React from 'react';
import Svg, { SvgProps, Path } from 'react-native-svg';
const SvgComponent = (props: SvgProps) => (
<Svg xmlns="http://www.w3.org/2000/svg" width={100} height={120} fill="none" {...props}>
<Path
fill="#9E0100"
fillRule="evenodd"
d="M50 8.33v1.667h6.667v3.334H60v3.333h3.333v-3.333h3.334v3.333H70v3.333h-3.333v3.334H70v3.333h3.333v6.667h3.334v6.666H80v10h3.333v30h3.334v3.334h-3.334v3.333h3.334v3.333h-3.334v3.334H80v3.333h-3.333v3.333h-3.334v3.334H70v3.333h-6.667v3.333h-6.666v3.334h10v-3.334h6.666v-6.666h3.334v3.333H80v-3.333h3.333v-3.334h3.334v-3.333h-3.334v-3.333h3.334v-3.334H90v-3.333h-3.333v-3.333h6.666v-20H90v-3.334h3.333v-3.333H90v-3.333h3.333v-3.334H90v-3.333h-3.333v-3.333H90v-3.334h-3.333v-6.666h-3.334v-6.667H80v-3.333h-3.333v-3.334h-3.334v-3.333H70v-3.333h-3.333V9.997h-3.334v3.334H60V6.664H50v1.667Zm20 13.334v1.667h3.333v-3.334H70v1.667Zm6.667 6.667v1.666H80v-3.333h-3.333v1.667Zm10 30v1.666H90v-3.333h-3.333v1.667Zm0 13.333v1.667H90v-3.334h-3.333v1.667ZM80 98.331v1.666h3.333v-3.333H80v1.667Z"
clipRule="evenodd"
/>
<Path
fill="#010001"
fillRule="evenodd"
d="M50 5.003v1.666h10v3.334h6.667v3.333H70v3.333h3.333v3.334h3.334v3.333H80v3.333h3.333v6.667h3.334v6.667H90v10h3.333v33.333H90v10h-3.333v6.667h-3.334v3.333H80v3.333h-6.667v3.334h-6.666v3.333H50v3.333h16.667v-3.333h6.666v-3.333H80v-3.334h3.333v-3.333h3.334v-3.333H90v-6.667h3.333v-10h3.334V50.003h-3.334v-10H90v-6.667h-3.333v-6.667h-3.334v-3.333H80v-3.333h-3.333v-3.334h-3.334v-3.333H70v-3.333h-3.333V6.669H60V3.336H50v1.667Z"
clipRule="evenodd"
/>
<Path
fill="#FFFE82"
fillRule="evenodd"
d="M60 11.667v1.666h-3.334v3.334h-3.333V20h3.333v3.333h3.333v3.334h3.334V30h3.333v-3.333h3.333v-3.334h3.334V20h-3.334v-3.333h-3.333v-3.334h-3.333V10h-3.334v1.667ZM60 15v1.667h-3.334V20h3.333v3.333h3.334v3.334h3.333v-3.334h3.333V20h-3.333v3.333h-3.333V20h-3.334v-3.333h3.334v-3.334h-3.334V15Zm-26.667 3.333V20h3.333v-3.333h-3.333v1.666Zm10 0V20h3.333v-3.333h-3.333v1.666Zm-20 6.667v1.667h3.333v-3.334h-3.333V25Zm6.666 3.333V30h-3.333v3.333h-3.333v3.334h-3.334V40h3.334v3.333h3.333v3.334h3.333V50h3.334v-3.333h3.333v-3.334h3.333V40h3.334v-3.333h-3.334v-3.334h-3.333V30h-3.333v-3.333h-3.334v1.666Zm46.667 0V30h3.333v-3.333h-3.333v1.666Zm-46.667 3.334v1.666h-3.333v3.334h-3.333V40h3.333v3.333h3.333v3.334h3.334v-3.334h3.333V40h3.333v-3.333h-3.333v-3.334h-3.333V30h-3.334v1.667ZM30 35v1.667h-3.333V40h3.333v3.333h3.334V40h3.333v-3.333h-3.333v-3.334h-3.334V35Zm23.334 0v1.667h3.333v-3.334h-3.333V35Zm20 6.667v1.666h3.333V40h-3.333v1.667Zm-30 3.333v1.667h3.333v-3.334h-3.333V45Zm16.666 0v1.667h-3.333V50h-3.333v3.333h-3.334v3.334h3.334V60h3.333v3.333h3.333v3.334h3.334v-3.334h3.333V60h3.333v-3.333h3.334v-3.334h-3.334V50h-3.333v-3.333h-3.333v-3.334h-3.334V45Zm26.667 0v1.667h3.333v-3.334h-3.333V45Zm-26.667 3.333V50h-3.333v3.333h-3.333v3.334h3.333V60h3.333v3.333h3.334V60h3.333v-3.333h3.333v-3.334h-3.333V50h-3.333v-3.333h-3.334v1.666Zm-46.666 3.334v1.666h3.333V50h-3.333v1.667Zm46.666 0v1.666h-3.333v3.334h3.333V60h3.334v-3.333h3.333v-3.334h-3.333V50h-3.334v1.667ZM90 55v1.667h-3.333V60h3.333v3.333h3.334V60h-3.334v-3.333h3.334v-3.334h-3.334V55Zm-63.333 3.333V60h3.333v-3.333h-3.333v1.666Zm-13.333 3.334v1.666H9.999v3.334H6.666V70h3.333v3.333H6.666v3.334h3.333V80h3.334v3.333h3.333V80h3.333v-3.333h3.334v-3.334h3.333V70h-3.333v-3.333h-3.334v-3.334h-3.333V60h-3.333v1.667Zm23.333 0v1.666h3.333V60h-3.333v1.667Zm40 0v1.666h3.333V60h-3.333v1.667ZM13.333 65v1.667H9.999V70h3.334v-3.333h3.333V70h3.333v3.333h-3.333v3.334h-3.333v-3.334H9.999v3.334h3.334V80h3.333v-3.333h3.333v-3.334h3.334V70h-3.334v-3.333h-3.333v-3.334h-3.333V65Zm36.666 3.333V70h3.334v-3.333h-3.334v1.666Zm16.667 3.334v1.666h3.333V70h-3.333v1.667Zm20 0v1.666h3.333V70h-3.333v1.667Zm-56.667 6.666V80h3.334v-3.333h-3.334v1.666Zm16.667 0V80h-3.333v3.333h-3.334v3.334h-3.333V90h3.333v3.333h3.334v3.334h3.333V100h3.333v-3.333h3.334v-3.334h3.333V90h3.333v-3.333h-3.333v-3.334h-3.333V80h-3.334v-3.333h-3.333v1.666Zm33.333 0V80h-3.333v3.333h-3.333v3.334h-3.334V90h3.334v3.333h3.333v3.334h3.333V100h3.334v-3.333h3.333v-3.334h3.333V90h-3.333v-3.333h3.333v-3.334h-3.333V80h-3.333v-3.333h-3.334v1.666Zm-33.333 3.334v1.666h-3.333v3.334h-3.334V90h3.334v3.333h3.333v3.334h3.333v-3.334h3.334V90h3.333v-3.333h-3.333v-3.334h-3.334V80h-3.333v1.667Zm16.667 0v1.666h3.333V80h-3.333v1.667Zm16.666 0v1.666h-3.333v3.334h-3.333V90h3.333v3.333h3.333v3.334h3.334v-3.334h3.333V90h-3.333v3.333h-3.334V90h-3.333v-3.333h3.333v-3.334h3.334v3.334h3.333v-3.334h-3.333V80h-3.334v1.667ZM23.333 85v1.667h3.333v-3.334h-3.333V85Zm23.333 0v1.667h-3.333V90h3.333v3.333h3.333V90h3.334v-3.333h-3.334v-3.334h-3.333V85Zm-30 10v1.667h-3.333V100h3.333v3.333h3.333v3.334h3.334v-3.334h3.333v3.334h3.333v-3.334h-3.333V100h-3.333v-3.333h-3.334v-3.334h-3.333V95Zm13.333 0v1.667h3.334v-3.334h-3.334V95Zm-13.333 3.333V100h3.333v3.333h3.334V100h-3.334v-3.333h-3.333v1.666Zm46.667 3.334v1.666h3.333V100h-3.333v1.667Zm10 3.333v1.667h3.333v-3.334h-3.333V105Zm-30 3.333V110h3.333v-3.333h-3.333v1.666Zm-10 3.334v1.666h3.333V110h-3.333v1.667Z"
clipRule="evenodd"
/>
<Path
fill="#010001"
fillRule="evenodd"
d="M50 5.003v1.666h10v3.334h6.667v3.333H70v3.333h3.333v3.334h3.334v3.333H80v3.333h3.333v6.667h3.334v6.667H90v10h3.333v33.333H90v10h-3.333v6.667h-3.334v3.333H80v3.333h-6.667v3.334h-6.666v3.333H50v3.333h16.667v-3.333h6.666v-3.333H80v-3.334h3.333v-3.333h3.334v-3.333H90v-6.667h3.333v-10h3.334V50.003h-3.334v-10H90v-6.667h-3.333v-6.667h-3.334v-3.333H80v-3.333h-3.333v-3.334h-3.334v-3.333H70v-3.333h-3.333V6.669H60V3.336H50v1.667Z"
clipRule="evenodd"
/>
<Path
fill="#240404"
fillRule="evenodd"
d="M40 5.003v1.666h-6.666v3.334h-3.333v3.333h-3.334v3.333h-3.333v3.334h-3.333v3.333h-3.334v3.333h-3.333v6.667h-3.333v6.667H6.667v10H3.334v33.333h3.333v10h3.334v6.667h3.333v3.333h3.333v3.333h3.334v3.334h6.666v3.333h6.667v3.333h16.667v-3.333H33.334v-3.333h-6.667v-3.334h-6.666v-3.333h-3.334v-3.333h-3.333v-6.667h-3.333v-10H6.667V50.003h3.334v-10h3.333v-6.667h3.333v-6.667h3.334v-3.333h3.333v-3.333h3.333v-3.334h3.334v-3.333h3.333v-3.333h6.667V6.669h10V3.336H40v1.667Z"
clipRule="evenodd"
/>
<Path
fill="#EE0404"
fillRule="evenodd"
d="M40 8.33v1.667h-6.667v3.334h-3.334v3.333h-3.333v3.333h-3.333v3.334h-3.334v3.333h-3.333v6.667h-3.333v6.666H9.999v10H6.666v16.667h3.333v3.333H6.666v3.334h3.333v3.333H6.666v6.667h3.333v10h3.334v3.333h3.333v3.333h3.333v3.334h3.334v3.333h3.333v3.333h10v3.334h20v-3.334h6.667v-3.333h6.666v-3.333h3.334v-3.334h3.333v-6.666h3.333v-3.334h-3.333v-3.333h3.333v-3.333h3.334v-3.334h-3.334v-3.333h3.334V49.997h-3.334v-10h-3.333v-6.666h-3.333v-6.667h-6.667v-3.333h-3.333v-3.334h-3.334v-3.333h-3.333V9.997h-6.667V6.664H40v1.667Zm-6.667 10v1.667h3.333v-3.333h-3.333v1.667Zm10 0v1.667h3.333v-3.333h-3.333v1.667Zm10 0v1.667h3.333v3.334h3.333v3.333h3.334v3.333h3.333v-3.333h-3.333v-3.333h-3.334v-3.334h-3.333v-3.333h-3.333v1.667Zm-30 6.667v1.667h3.333v-3.333h-3.333v1.666Zm6.666 3.334v1.666h-3.333v3.334h-3.333v3.333h-3.334v3.333h3.334v3.334h3.333v3.333h3.333v3.333h3.334v-3.333h3.333v-3.333h3.333v-3.334h3.334v-3.333h-3.334v-3.333h-3.333v-3.334h-3.333v-3.333h-3.334v1.667Zm0 3.333v1.667h-3.333v3.333h-3.333v3.333h3.333v3.334h3.333v3.333h3.334v-3.333h3.333v-3.334h3.333v-3.333h-3.333v-3.333h-3.333v-3.334h-3.334v1.667Zm0 3.333v1.667h-3.333v3.333h3.333v3.334h3.334v-3.334h3.333v-3.333h-3.333v-3.333h-3.334v1.666Zm23.334 0v1.667h3.333v-3.333h-3.333v1.666Zm20 6.667v1.667h3.333v-3.334h-3.333v1.667Zm-30 3.333v1.667h3.333v-3.333h-3.333v1.666Zm16.666 0v1.667h-3.333v3.333h-3.333v3.334h-3.334v3.333h3.334v3.333h3.333v3.334h3.333v3.333h3.334v-3.333h3.333v-3.334h3.333v-3.333h3.334v-3.333h-3.334v-3.334h-3.333v-3.333h-3.333v-3.333h-3.334v1.666Zm0 3.334v1.666h-3.333v3.334h-3.333v3.333h3.333v3.333h3.333v3.334h3.334v-3.334h3.333v-3.333h3.333v-3.333h-3.333v-3.334h-3.333v-3.333h-3.334v1.667Zm-46.666 3.333v1.667h3.333v-3.334h-3.333v1.667Zm46.666 0v1.667h-3.333v3.333h3.333v3.333h3.334v-3.333h3.333v-3.333h-3.333v-3.334h-3.334v1.667Zm-33.333 6.667v1.666h3.333v-3.333h-3.333v1.667Zm-13.333 3.333v1.667H9.999v3.333h3.334v3.333H9.999v3.334h3.334v3.333H9.999v3.333h3.334v3.334h3.333v-3.334h3.333v-3.333h3.334v-3.333h3.333v-3.334h-3.333v-3.333h-3.334v-3.333h-3.333v-3.334h-3.333v1.667Zm23.333 0v1.667h3.333v-3.334h-3.333v1.667Zm40 0v1.667h3.333v-3.334h-3.333v1.667Zm-63.333 3.333v1.667h3.333v3.333h3.333v3.334h-3.333v3.333h-3.333v3.333h3.333v-3.333h3.333v-3.333h3.334v-3.334h-3.334v-3.333h-3.333v-3.333h-3.333v1.666Zm36.666 3.334v1.666h3.334v-3.333h-3.334v1.667Zm16.667 3.333v1.667h3.333v-3.334h-3.333v1.667Zm-36.667 6.667v1.666h3.334v-3.333h-3.334v1.667Zm16.667 0v1.666h-3.333v3.334h-3.334v3.333h-3.333v3.333h3.333v3.334h3.334v3.333h3.333v3.333h3.333v-3.333h3.334v-3.333h3.333v-3.334h3.333v-3.333h-3.333v-3.333h-3.333v-3.334h-3.334v-3.333h-3.333v1.667Zm0 3.333v1.667h-3.333v3.333h-3.334v3.333h3.334v3.334h3.333v3.333h3.333v-3.333h3.334v-3.334h3.333v-3.333h-3.333v-3.333h-3.334v-3.334h-3.333v1.667Zm16.667 0v1.667h3.333v-3.334h-3.333v1.667Zm13.333 0v1.667h-3.333v3.333h-3.334v3.333h3.334v3.334h3.333v-3.334h-3.333v-3.333h3.333v-3.333h3.333v-3.334h-3.333v1.667Zm-53.333 3.333v1.667h3.333v-3.333h-3.333v1.666Zm23.333 0v1.667h-3.333v3.333h3.333v3.334h3.333v-3.334h3.334v-3.333h-3.334v-3.333h-3.333v1.666Zm-30 10v1.667h3.333v3.333h3.334v3.334h3.333v3.333h3.333v-3.333h-3.333v-3.334h-3.333v-3.333h-3.334v-3.333h-3.333v1.666Zm13.333 0v1.667h3.334v-3.333h-3.334v1.666Zm33.334 6.667v1.667h3.333v-3.334h-3.333v1.667Zm-20 6.667v1.666h3.333v-3.333h-3.333v1.667Z"
clipRule="evenodd"
/>
</Svg>
);
export default SvgComponent;
38 changes: 0 additions & 38 deletions src/components/screens/(auth)/oauth-callback.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './useHomeConfig';
export * from './useInventory';
export * from './useNetworkState';
export * from './useDeepLinks';
52 changes: 0 additions & 52 deletions src/hooks/useDeepLinks.ts

This file was deleted.

0 comments on commit 9be7a62

Please sign in to comment.