aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--babel.config.json3
-rw-r--r--package.json2
-rw-r--r--src/components/travel-advisory/ListCountries.jsx2
-rw-r--r--src/layouts/Layout.astro1
-rw-r--r--src/pages/index.astro1
-rw-r--r--src/pages/travel-advisory.astro2
6 files changed, 3 insertions, 8 deletions
diff --git a/babel.config.json b/babel.config.json
deleted file mode 100644
index d58d020..0000000
--- a/babel.config.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "plugins": ["@babel/plugin-syntax-import-attributes"]
-}
diff --git a/package.json b/package.json
index fba5407..9fe9d8f 100644
--- a/package.json
+++ b/package.json
@@ -16,12 +16,10 @@
"@fontsource-variable/exo": "^5.0.9",
"@tailwindcss/typography": "^0.5.9",
"astro": "^3.0.7",
- "babel-cli": "^6.26.0",
"preact": "^10.17.1",
"tailwindcss": "^3.3.3"
},
"devDependencies": {
- "@babel/plugin-syntax-import-attributes": "^7.22.5",
"eslint": "^8.48.0",
"eslint-plugin-astro": "^0.29.0"
}
diff --git a/src/components/travel-advisory/ListCountries.jsx b/src/components/travel-advisory/ListCountries.jsx
index 867482b..c204c94 100644
--- a/src/components/travel-advisory/ListCountries.jsx
+++ b/src/components/travel-advisory/ListCountries.jsx
@@ -1,4 +1,4 @@
-import countriesData from './countries.json' assert { type: 'json' };
+import countriesData from './countries.json';
import HistoryModal from "./HistoryModal";
import { useState } from "preact/hooks";
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 57e231f..38fb1ff 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,6 +1,7 @@
---
import Navbar from "../components/Navbar.jsx";
import PSA from "../components/PSA.astro";
+import "../styles/globals.css";
const { title, description } = Astro.props;
---
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 902886e..7376d3f 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,6 +1,5 @@
---
import Layout from '../layouts/Layout.astro';
-import "../styles/globals.css";
---
<Layout title="Home" description="The official website of the Government of Alure Regions">
diff --git a/src/pages/travel-advisory.astro b/src/pages/travel-advisory.astro
index 42c238a..bc1c36f 100644
--- a/src/pages/travel-advisory.astro
+++ b/src/pages/travel-advisory.astro
@@ -1,5 +1,5 @@
---
-import Countries from '../components/travel-advisory/ListCountries.jsx'
+import { Countries } from '../components/travel-advisory/ListCountries.jsx'
import Layout from "../layouts/Layout.astro";
---
<Layout title="Travel Advisory" description="Information whether its safe to travel to other countries">