Refactor imports in Astro project

This commit is contained in:
Max Schmidt
2023-06-17 10:50:48 +02:00
parent e4ccd21a23
commit 08df56c679
6 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,7 @@
---
import { Image } from "@astrojs/image/components";
import { getContentArray } from "../utils/helpers";
import { getImageSrc } from "../utils/payload";
import { getContentArray } from "src/utils/helpers";
import { getImageSrc } from "src/utils/payload";
const { content } = Astro.props;
const contentArray = getContentArray(content);
---