Skip to content

Commit

Permalink
feat: Add simple input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Oct 25, 2023
1 parent 4112c9f commit 14f7e5d
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 223 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@equinor/eds-data-grid-react": "^0.1.0-beta.2",
"@equinor/eds-icons": "^0.19.1",
"@equinor/eds-tokens": "^0.9.0",
"@hookform/resolvers": "^3.3.2",
"@tanstack/react-query": "^4.32.6",
"@tanstack/react-query-devtools": "^4.36.1",
"@tanstack/react-table": "^8.9.1",
Expand All @@ -24,11 +25,13 @@
"openapi-typescript-codegen": "^0.25.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react-router-dom": "^6.8.0",
"react-scripts": "5.0.1",
"styled-components": "^5.3.9",
"typescript": "^4.9.4",
"web-vitals": "^2.1.0"
"web-vitals": "^2.1.0",
"zod": "^3.22.4"
},
"scripts": {
"start": "react-scripts start",
Expand Down Expand Up @@ -70,4 +73,4 @@
"openapi-typescript": "^6.3.9",
"prettier": "^2.8.2"
}
}
}
6 changes: 6 additions & 0 deletions src/components/AreaCoordinates/AreaCoordinates.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const CoordinateGroup = styled.div`
display: flex;
flex-direction: column;
> .autocomplete-error {
color: red;
}
> .autocomplete-error {
> div {
> div {
Expand All @@ -33,6 +37,8 @@ export const CoordinateGroup = styled.div`
border: solid 2px red;
}
}
color: red;
}
`;

Expand Down
Loading

0 comments on commit 14f7e5d

Please sign in to comment.