🐛 fix(Dockerfile): change order of COPY commands to improve build caching and efficiency
🐛 fix(exportModal/index.tsx): add state for invalidName to handle validation of name field
This commit is contained in:
parent
d4beb3133c
commit
c2cfcafc17
2 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
FROM node:20-alpine as frontend_build
|
FROM node:20-alpine as frontend_build
|
||||||
ARG BACKEND_URL
|
ARG BACKEND_URL
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./src /app/src
|
|
||||||
COPY ./package.json ./package-lock.json ./tsconfig.json ./vite.config.ts ./index.html ./tailwind.config.js ./postcss.config.js ./prettier.config.js /app/
|
|
||||||
|
|
||||||
|
COPY ./package.json ./package-lock.json ./tsconfig.json ./vite.config.ts ./index.html ./tailwind.config.js ./postcss.config.js ./prettier.config.js /app/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
COPY ./src /app/src
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ const ExportModal = forwardRef((props: { children: ReactNode }, ref) => {
|
||||||
const [name, setName] = useState(flow.name);
|
const [name, setName] = useState(flow.name);
|
||||||
const [description, setDescription] = useState(flow.description);
|
const [description, setDescription] = useState(flow.description);
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
|
const [invalidName, setInvalidName] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseModal size="smaller" open={open} setOpen={setOpen}>
|
<BaseModal size="smaller" open={open} setOpen={setOpen}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue