Skip to content

Commit

Permalink
fix: shared api cleanup (#660)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Alder Whiteford <[email protected]>
Co-authored-by: garrettladley <[email protected]>
Co-authored-by: Alder Whiteford <[email protected]>
Co-authored-by: Garrett Ladley <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
6 people authored Apr 27, 2024
1 parent 5c1a24b commit a5558ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/dashboard/src/store/store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { configureStore } from "@reduxjs/toolkit";
import { useDispatch, useSelector, useStore } from "react-redux";
import { baseApi } from "../api/api";
import { baseApi } from "@sac/lib";

export const makeStore = () => {
return configureStore({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import { ActivityIndicator, Image, Pressable, Text, View } from 'react-native';

import { router } from 'expo-router';

import { useClubQuery } from '@sac/lib';
import { UseQueryResult } from '@tanstack/react-query';

Expand All @@ -11,7 +13,6 @@ import { isToday, randomEventColorData } from '@/lib/utils';
import { Event } from '@/types/event';
import { Tag } from '@/types/tag';
import { uuid } from '@/types/uuid';
import { router } from 'expo-router';

type EventHomePageCardHorizontalProps = {
event: Event;
Expand All @@ -33,7 +34,7 @@ const EventHomePageCardHorizontal = ({

const randomEventColor =
randomEventColorData[
Math.round(Math.random() * (randomEventColorData.length - 1))
Math.round(Math.random() * (randomEventColorData.length - 1))
];

return (
Expand Down Expand Up @@ -104,7 +105,7 @@ const EventHomePageCard = ({ event }: { event: Event }) => {

const randomEventColor =
randomEventColorData[
Math.round(Math.random() * (randomEventColorData.length - 1))
Math.round(Math.random() * (randomEventColorData.length - 1))
];

return (
Expand Down
1 change: 0 additions & 1 deletion frontend/mobile/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import * as SplashScreen from 'expo-splash-screen';
import { StatusBar } from 'expo-status-bar';

import FontAwesome from '@expo/vector-icons/FontAwesome';
import { store } from '@sac/lib';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

import { useAuthStore } from '@/hooks/use-auth';
Expand Down
2 changes: 1 addition & 1 deletion frontend/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
"typescript": "^5.4.5"
},
"private": true
}
}
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dashboard",
"lib",
"mobile",
"web"
"web",
"dashboard"
]
},
"private": true
Expand Down

0 comments on commit a5558ac

Please sign in to comment.