Browse Source

unused component

pull/8/head
Tim Glasgow 2 years ago
parent
commit
294a045505
  1. 6
      squarenotsquare/__tests__/App-test.js
  2. 6
      squarenotsquare/src/navigation/SquareStack.js
  3. 14
      squarenotsquare/src/screens/Settings.js

6
squarenotsquare/__tests__/App-test.js

@ -11,6 +11,7 @@ import HighScore from '../src/screens/HighScore';
import Home from '../src/screens/Home'; import Home from '../src/screens/Home';
import Settings from '../src/screens/Settings'; import Settings from '../src/screens/Settings';
import Splash from '../src/screens/Splash'; import Splash from '../src/screens/Splash';
jest.useFakeTimers()
it('renders square stack', () => { it('renders square stack', () => {
const mockStore = ConfigStore; const mockStore = ConfigStore;
@ -43,11 +44,6 @@ it('renders home component', () => {
); );
}); });
it('renders settings component', () => {
const mockStore = ConfigStore;
return renderer.create(<Settings store={mockStore}/>);
});
it('renders splash component', () => { it('renders splash component', () => {
return renderer.create(<Splash />); return renderer.create(<Splash />);
}); });

6
squarenotsquare/src/navigation/SquareStack.js

@ -6,7 +6,6 @@ import {SquareRef} from './SquareNav';
import Home from '../screens/Home'; import Home from '../screens/Home';
import Game from '../screens/Game'; import Game from '../screens/Game';
import HighScore from '../screens/HighScore'; import HighScore from '../screens/HighScore';
import Settings from '../screens/Settings';
import Splash from '../screens/Splash'; import Splash from '../screens/Splash';
import Score from '../screens/Score'; import Score from '../screens/Score';
import AdditionGame from '../screens/AdditionGame'; import AdditionGame from '../screens/AdditionGame';
@ -34,11 +33,6 @@ function SquareStack() {
component={HighScore} component={HighScore}
options={noHeader} options={noHeader}
/> />
<SquareNav.Screen
name="Settings"
component={Settings}
options={noHeader}
/>
<SquareNav.Screen <SquareNav.Screen
name="Game" name="Game"
component={Game} component={Game}

14
squarenotsquare/src/screens/Settings.js

@ -1,14 +0,0 @@
import React from "react";
import { Text, View } from "react-native";
import { useState } from "react";
function Settings(props){
return (
<View>
<Text style={{color: 'black'}}>test</Text>
</View>
);
}
export default Settings;
Loading…
Cancel
Save