From 5bf1e7586bd32faa3d0af8755eafc0b4fdf113ad Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 30 Mar 2020 15:49:54 +0200 Subject: [PATCH] Moved files to follow new project structure --- .../__test__ => __tests__/managers}/ConnectionManager.test.js | 2 +- {utils => managers}/ConnectionManager.js | 0 screens/Amicale/LoginScreen.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {utils/__test__ => __tests__/managers}/ConnectionManager.test.js (85%) rename {utils => managers}/ConnectionManager.js (100%) diff --git a/utils/__test__/ConnectionManager.test.js b/__tests__/managers/ConnectionManager.test.js similarity index 85% rename from utils/__test__/ConnectionManager.test.js rename to __tests__/managers/ConnectionManager.test.js index 40bb62c..246983b 100644 --- a/utils/__test__/ConnectionManager.test.js +++ b/__tests__/managers/ConnectionManager.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import ConnectionManager, {ERROR_TYPE} from "../ConnectionManager"; +import ConnectionManager, {ERROR_TYPE} from "../../managers/ConnectionManager"; const fetch = require('isomorphic-fetch'); // fetch is not implemented in nodeJS but in react-native const c = ConnectionManager.getInstance(); diff --git a/utils/ConnectionManager.js b/managers/ConnectionManager.js similarity index 100% rename from utils/ConnectionManager.js rename to managers/ConnectionManager.js diff --git a/screens/Amicale/LoginScreen.js b/screens/Amicale/LoginScreen.js index 00853ba..c1d398d 100644 --- a/screens/Amicale/LoginScreen.js +++ b/screens/Amicale/LoginScreen.js @@ -3,7 +3,7 @@ import * as React from 'react'; import {Keyboard, KeyboardAvoidingView, StyleSheet, TouchableWithoutFeedback, View} from "react-native"; import {Button, Text, TextInput, Title} from 'react-native-paper'; -import ConnectionManager from "../../utils/ConnectionManager"; +import ConnectionManager from "../../managers/ConnectionManager"; type Props = { navigation: Object,