Skip to content

Commit

Permalink
fix revalidate bug in one news page (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydykovkanat authored Jan 10, 2025
1 parent 7b1807e commit 37db6d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/app/(root)/news/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import React from 'react';
import carouselStyles from './carousel.module.css';
import styles from './one-news.module.css';

export const revalidate = 10;

export default function Page() {
const { emblaRef, oneNews, initialIndex, setInitialIndex, news } = useOneNews();
const { open, toggleOpen } = useDialogState();
Expand All @@ -28,9 +26,7 @@ export default function Page() {
return (
<>
{!oneNews ? (
<Container className={'d-flex'}>
<Loader className={'mx-auto'} />
</Container>
<Loader className={'mx-auto'} absolute />
) : (
<Container>
<div className={cn(styles.titleBlock)}>
Expand Down

0 comments on commit 37db6d4

Please sign in to comment.