Skip to content

Commit

Permalink
fix: multi-create form bugs from mantine upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
peebeejay authored and aldolamb committed May 11, 2023
1 parent 7b8b776 commit fc8b4fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/components/admin/CreateRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ export const CreateRow = (props: Props) => {
}
}, [values.year]);

/* Update the year field based on the start date */
useEffect(() => {
const startDateYear = values.startDate?.getFullYear();
if (startDateYear && values.year !== startDateYear) {
setFieldValue('year', values.startDate.getFullYear());
}
}, [values.startDate]);

/* Set GitHubRepoID when values are returned from the hook */
useEffect(() => {
if (githubRepoId && githubRepoId !== values.githubRepoId) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/ImageDropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export const DropzoneChildrenSmall = ({ file, error }: DropzoneChildrenProps) =>
transition="pop-top-left"
styles={{
dropdown: {
pointerEvents: 'none',
backgroundColor: BackgroundPanel2,
borderColor: BackgroundPanel2,
},
Expand All @@ -102,6 +101,7 @@ export const DropzoneChildrenSmall = ({ file, error }: DropzoneChildrenProps) =>
>
<Popover.Target>
<Image
style={{ pointerEvents: 'auto' }}
width={90}
height={90}
src={URL.createObjectURL(file)}
Expand Down

0 comments on commit fc8b4fe

Please sign in to comment.