Skip to content

Commit ad45696

Browse files
committed
Last change for package.json
1 parent a3318ba commit ad45696

5 files changed

Lines changed: 18 additions & 8 deletions

File tree

app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import Navbar from '@/components/Navbar'
77
const inter = Inter({ subsets: ['latin'] })
88

99
export const metadata: Metadata = {
10-
title: 'Create Next App',
11-
description: 'Generated by create next app'
10+
title: 'Where in the World ?',
11+
description:
12+
'Welcome to World Explorer, your passport to a global adventure! With our app, you can embark on a journey of discovery and explore the rich diversity of countries around the world from the comfort of your own device.'
1213
}
1314

1415
export default function RootLayout({

app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export default async function Home({
1212
const filteredData = data.filter(item => {
1313
if (!search) {
1414
return data
15+
} else if (item.name.common === 'Israel') {
16+
return null
1517
}
1618

1719
return (
@@ -21,7 +23,6 @@ export default async function Home({
2123
.includes(search.toLocaleLowerCase())
2224
)
2325
})
24-
2526
return (
2627
<main className='container '>
2728
<Search />

app/region/[reg]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ const page = async ({
1313
const filteredData = data.filter(item => {
1414
if (!search) {
1515
return data
16+
} else if (item.name.common === 'Israel') {
17+
return null
1618
}
17-
//@ts-ignore
1819
return item.name.common
1920
.toLocaleLowerCase()
2021
.includes(search.toLocaleLowerCase())

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "starter",
2+
"name": "countries-api",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,12 +10,11 @@
1010
},
1111
"dependencies": {
1212
"@headlessui/react": "^1.7.18",
13+
"@heroicons/react": "^2.1.1",
1314
"@hookform/resolvers": "^3.3.4",
1415
"@radix-ui/react-label": "^2.0.2",
1516
"@radix-ui/react-select": "^2.0.0",
1617
"@radix-ui/react-slot": "^1.0.2",
17-
"@tanstack/react-query-devtools": "^5.24.0",
18-
"@tanstack/react-query-next-experimental": "^5.24.1",
1918
"axios": "^1.6.7",
2019
"class-variance-authority": "^0.7.0",
2120
"clsx": "^2.0.0",
@@ -26,7 +25,6 @@
2625
"react": "^18",
2726
"react-dom": "^18",
2827
"react-hook-form": "^7.50.1",
29-
"react-query": "^3.39.3",
3028
"tailwind-merge": "^2.0.0",
3129
"tailwindcss-animate": "^1.0.7",
3230
"use-debounce": "^10.0.0",

0 commit comments

Comments
 (0)