Skip to content

Commit

Permalink
specified alpine version, fixed import useEffect in ReservationButton
Browse files Browse the repository at this point in the history
  • Loading branch information
antonisdev committed Nov 6, 2024
1 parent a10c557 commit ee08347
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:lts-alpine
FROM node:lts-alpine3.18

WORKDIR /app

RUN apk --no-cache add curl

COPY package.json package.json
RUN npm install
RUN npm install --loglevel verbose

COPY tsconfig.json tsconfig.json

Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine
FROM node:lts-alpine3.18

RUN apk --no-cache add curl

Expand All @@ -17,7 +17,7 @@ COPY codegen.ts codegen.ts


COPY package.json package.json
RUN npm install
RUN npm install --loglevel verbose

COPY src src

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ReservationButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, message } from "antd";
import { Article } from "../interface/types";
import { useHandleReservationMutation } from "../generated/graphql-types";
import { useContext, useEffect } from "react";
import { useContext } from "react";
import { UserContext } from "./Layout";

export default function ReservationButton({
Expand All @@ -25,7 +25,7 @@ export default function ReservationButton({
message.error("Erreur lors de la réservation");
},
});

const onClick = () => {
const startDateString = localStorage.getItem("startDate");
const startDate = startDateString ? new Date(startDateString) : null;
Expand Down

0 comments on commit ee08347

Please sign in to comment.