diff --git a/app.json b/app.json
index 76ce6e8..b5c5ba1 100644
--- a/app.json
+++ b/app.json
@@ -3,7 +3,7 @@
"name": "suuudokuuu",
"slug": "suuudokuuu",
"scheme": "myapp",
- "version": "1.0.1",
+ "version": "1.1.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
diff --git a/app/loser/index.tsx b/app/loser/index.tsx
index bf45103..71539ed 100644
--- a/app/loser/index.tsx
+++ b/app/loser/index.tsx
@@ -1,25 +1,17 @@
import { View } from 'react-native';
-import { BlackButton } from '../../components/black-button/black-button';
import { Header } from '../../components/header/header';
import { PageHeader } from '../../components/page-header/page-header';
-import { useAppDispatch } from '../../hooks/redux.hook';
-import { appRootResetAction } from '../../store/app-root/app-root.actions';
+import { PlayAgainButton } from '../../components/play-again-button/play-again-button';
import { LoserStyles as styles } from './loser.styles';
export default function Loser() {
- const dispatch = useAppDispatch();
-
- const handlePlayAgain = () => {
- dispatch(appRootResetAction);
- };
-
return (
-
+
);
}
diff --git a/app/winner/index.tsx b/app/winner/index.tsx
index f347de9..fd6df99 100644
--- a/app/winner/index.tsx
+++ b/app/winner/index.tsx
@@ -1,8 +1,8 @@
import { View } from 'react-native';
-import { BlackButton } from '../../components/black-button/black-button';
import { Header } from '../../components/header/header';
import { PageHeader } from '../../components/page-header/page-header';
+import { PlayAgainButton } from '../../components/play-again-button/play-again-button';
import { WinnerStyles as styles } from './winner.styles';
@@ -11,7 +11,7 @@ export default function Winner() {
-
+
);
}
diff --git a/components/play-again-button/play-again-button.tsx b/components/play-again-button/play-again-button.tsx
new file mode 100644
index 0000000..304b458
--- /dev/null
+++ b/components/play-again-button/play-again-button.tsx
@@ -0,0 +1,13 @@
+import { useAppDispatch } from '../../hooks/redux.hook';
+import { appRootResetAction } from '../../store/app-root/app-root.actions';
+import { BlackButton } from '../black-button/black-button';
+
+export const PlayAgainButton = () => {
+ const dispatch = useAppDispatch();
+
+ const handlePlayAgain = () => {
+ dispatch(appRootResetAction());
+ };
+
+ return ;
+};