Skip to content

Commit

Permalink
чинит внутренние конфликты с моей головой
Browse files Browse the repository at this point in the history
  • Loading branch information
semant1cs committed Nov 20, 2023
1 parent bae499f commit 5df8536
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ COPY . /app/
RUN npm run build
RUN npm install -g serve

CMD serve -s dist -l ${FRONT_APP_PORT}
CMD serve -s dist -l ${FRONT_APP_PORT}
2 changes: 0 additions & 2 deletions frontend/src/components/authentication/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const Authentication: React.FC = observer(() => {
<CustomButton additionalClassName="auth__btn" text="ВОЙТИ" handleOnClick={() => {
authStore.signIn().then(() => navigateTo('/map'))
}}/>
{/*<CustomButton additionalClassName="auth__btn" text="ЗАРЕГИСТРИРОВАТЬСЯ"*/}
{/* handleOnClick={() => authStore.signUp()}/>*/}
</form>
<CustomButton additionalClassName="back-to-welcome-page__btn" text="Вернуться обратно"
handleOnClick={() => navigateTo('/')}></CustomButton>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/mapMenu/MapMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const MapMenu: React.FC = observer(() => {
mapMenuStore.fetchModuleById(mapMenuStore.availableModules[0].id).then(() => {
mapMenuStore.fetchLevels().then(() => {
console.log(mapMenuStore.availableLevels)
})
}).catch(() => alert("Нет доступных уровней для данного модуля"))
})
})
}).catch(() => alert("Нет доступных модулей для данной карты"))
})
})
}).catch(() => alert("Нет доступных карт для данного пользователя"))
}, [navigate])

return (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/store/mapMenuStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class MapMenuStore {

createMap(mapName: string) {
axios.post("http://localhost:8000/maps/", {title: mapName})

}

async fetchMapById(id: string) {
Expand Down

0 comments on commit 5df8536

Please sign in to comment.