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 ( <>