-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: billing auth, location in home page
- Loading branch information
1 parent
707104b
commit e45b9d1
Showing
7 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { getCurrenciesAsync } from '@albomoni/entities/ad-card/api/get-currencies'; | ||
import { AdsContainer } from './ads-container'; | ||
import dynamic from 'next/dynamic'; | ||
|
||
const DynamicAdsContainer = dynamic( | ||
() => import('./ads-container').then((mod) => mod.AdsContainer), | ||
{ ssr: false }, | ||
); | ||
|
||
export const HomeAdsList = async ({ lng }: { lng: string }) => { | ||
const currencies = await getCurrenciesAsync(); | ||
|
||
return ( | ||
<div className='w-full h-min flex flex-col gap-6'> | ||
<h2 className='text-xl md:text-2xl font-bold'>Актуальные объявления</h2> | ||
<AdsContainer currencies={currencies} /> | ||
<DynamicAdsContainer currencies={currencies} /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { getLocation } from '@albomoni/shared/lib/utils/get-location'; | ||
import { Placeholder } from '@albomoni/shared/ui/placeholder'; | ||
import { PiCompass, PiMagnifyingGlass } from 'react-icons/pi'; | ||
|
||
export const HomeAdsPlaceholder = () => { | ||
const location = getLocation(); | ||
|
||
return location.address === 'Весь мир' ? ( | ||
<Placeholder | ||
icon={<PiCompass size={64} className='opacity-50 mt-10' />} | ||
title='Не выбран регион' | ||
desc='Перейдите в выбор региона для уточнения зоны поиска объявлений' | ||
/> | ||
) : ( | ||
<Placeholder | ||
icon={<PiMagnifyingGlass size={64} className='opacity-50 mt-10' />} | ||
title='Объявления не найдены' | ||
desc='Создайте первое объявление в своём городе!' | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters