Skip to content

Commit

Permalink
feat: fixed typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebubeker committed Nov 2, 2023
1 parent b3730b6 commit b8b62e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/modals/Metadata.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import LayerMetadataForm from "@/components/common/LayerMetadataForm";
import type { Layer } from "@/lib/validations/layer";
import type { LayerMetadata } from "@/lib/validations/layer";
import type { ContentDialogBaseProps } from "@/types/dashboard/content";
import {
Dialog,
Expand All @@ -17,7 +17,7 @@ const Metadata: React.FC<MetadataDialogProps> = ({
onClose,
content,
}) => {
const onSubmit = (data: Layer) => {
const onSubmit = (data: LayerMetadata) => {
console.log(data);
};

Expand Down
1 change: 1 addition & 0 deletions apps/web/lib/validations/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const layerSchema = layerMetadataSchema.extend({
updated_at: z.string(),
created_at: z.string(),
extent: z.string(),
query: z.object({}),
folder_id: z.string(),
id: z.string().uuid(),
user_id: z.string().uuid(),
Expand Down

0 comments on commit b8b62e7

Please sign in to comment.