From c75bf4f9fead600b8acb076670f4f291aa29f582 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Tue, 22 Nov 2022 19:39:58 +0200 Subject: [PATCH] remove secrets from source code --- build.sh | 2 +- private/docker-notes.txt | 2 +- src/components/App.js | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 2c2127b..06fb1f6 100644 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ echo "Welcome!" version="1.1.0" -registryPass="***REMOVED***" +registryPass="***********" echo "Create docker image with version $version." docker image build -t "network-resurrector-frontend:$version" . diff --git a/private/docker-notes.txt b/private/docker-notes.txt index 8e60317..1bc33d0 100644 --- a/private/docker-notes.txt +++ b/private/docker-notes.txt @@ -15,7 +15,7 @@ Push image to registry: docker tag network-resurrector-frontend:1.0.0 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 --login to registry -docker login --username=admin --password="***REMOVED***" alpine-nexus:8500 +docker login --username=admin --password="***********" alpine-nexus:8500 --push image docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 diff --git a/src/components/App.js b/src/components/App.js index 321c20a..6b1ffa8 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -13,12 +13,11 @@ import { ToastContainer, Slide } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; const App = () => { - //il fac pt test dar e gresit. daca va fi un singur state se va redesena toata aplicatia de fiecare data. - //testeaza ca se redeseneaza de fiecare data const [state, dispatch] = useReducer(reducer, initialState); - const dispatchActions = useMemo(() => reducerDispatchActions(dispatch), [ - dispatch - ]); + const dispatchActions = useMemo( + () => reducerDispatchActions(dispatch), + [dispatch] + ); return ( <>