Skip to content

Commit

Permalink
fix: remove broken import
Browse files Browse the repository at this point in the history
That package was auto-imported by the IDE and provokes an error when building the project
  • Loading branch information
martinhauke committed Aug 21, 2024
1 parent 0e6701d commit 98e8a87
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/LanguagePicker.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import { languages } from '../i18n/ui';
import {Astro} from "astro/env";
const url = Astro.url.pathname
---
<ul>
Expand Down
1 change: 0 additions & 1 deletion src/components/RecipeMetaData.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { library, icon } from "@fortawesome/fontawesome-svg-core";
import { faUsers, faClock } from "@fortawesome/free-solid-svg-icons";
import {getLangFromUrl, useTranslations} from "../i18n/utils";
import {Astro} from "astro/env";
// Declare all the icons you plan on using
library.add(faUsers, faClock);
// Instantiate the icon with the icon function
Expand Down
1 change: 0 additions & 1 deletion src/components/Steps.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import Step from "./Step.astro";
import ContentBox from "./ContentBox.astro";
import {getLangFromUrl,useTranslations} from "../i18n/utils";
import {Astro} from "astro/env";
interface Props {
steps: Array<string>;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ingredients/IngredientList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {type IngredientGroup} from "../../content/config";
import ContentBox from "../ContentBox.astro";
import Group from "./IngredientGroup.astro";
import {getLangFromUrl, useTranslations} from "../../i18n/utils";
import {Astro} from "astro/env";
interface Props {
ingredientGroups: Array<IngredientGroup>;
}
Expand Down
1 change: 0 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
import Header from "../components/Header.astro";
import {getLangFromUrl} from '../i18n/utils';
import {Astro} from "astro/env";
const lang = getLangFromUrl(Astro.url);
interface Props {
Expand Down
1 change: 0 additions & 1 deletion src/pages/[lang]/recipe/[name].astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import Layout from "../../../layouts/Layout.astro";
import Steps from "../../../components/Steps.astro";
import ContentBox from "../../../components/ContentBox.astro";
import RecipeMetaData from "../../../components/RecipeMetaData.astro";
import {Astro} from "astro/env";
---
<Layout title={recipe.data.name} description={recipe.data.description}>
<ContentBox class="title"><h1>{recipe.data.name}</h1></ContentBox>
Expand Down

0 comments on commit 98e8a87

Please sign in to comment.