Commit 57c22fb1 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se cambio el cntexto de desarrollo a produccion para las actividades

parent df95d384
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import { StateDataSourceProd } from "../../infrastructure/datasource/prod/state_
import { ProfileRepository } from "../../profile/domain/repositories/profile_repository";
import { ProfileDataSourceDev } from "../../profile/infrastructure/datasources/dev/profile_datasource";
import { ProfileRepositoryImpl } from "../../profile/infrastructure/repositories/profile_repository";
import { ActivityDatasourceProd } from "../../infrastructure/datasource/prod/activity_datasource";

type DataContextType = {
    statesRepository: StateRepository | null;
@@ -41,11 +42,14 @@ const DataContext = createContext<DataContextType>({
});

export const DataContextProvider = ({ children }: DataContextProviderProps) => {
    const statesDataSource = new StateDataSourceDev();
    //const statesDataSource = new StateDataSourceDev();
    const statesDataSource = new StateDataSourceProd();
    const statesRepository = new StateRepositoryImpl(statesDataSource);
    const authDataSource = new AuthDataSourceDev();
    //const authDataSource = new AuthDataSourceDev();
    const authDataSource = new AuthDatasourceProd();
    const authRepository = new AuthRepositoryImpl(authDataSource);
    const activityDataSource = new ActivityDatasourceDev();
    //const activityDataSource = new ActivityDatasourceDev();
    const activityDataSource = new ActivityDatasourceProd();
    const activityRepository = new ActivityRepositoryDev(activityDataSource);
    const travelDatasource = new TravelDatasourceDev();
    const travelRepository = new TravelRepositoryImpl(travelDatasource);