Skip to content

Commit

Permalink
fix: periodical ISR
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Aug 28, 2024
1 parent c30fa4c commit 44f1fa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/rankTable/RankTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const RankSearchBar = ({

return (
<div className='mb-2 flex items-center justify-between rounded-lg border bg-gray-50 py-2 px-2 shadow dark:border-gray-700 dark:bg-gray-800 dark:shadow-gray-800'>
<div className=' justify-items-start'>
<div className='justify-items-start'>
<Dropdown
options={typeOptions}
initValue={target}
Expand All @@ -155,7 +155,7 @@ export const RankSearchBar = ({
</span>
</div>
</div>
<div className=' justify-items-end'>
<div className='justify-items-end'>
<Dropdown
initValue={month}
size='small'
Expand Down
2 changes: 1 addition & 1 deletion src/components/respository/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ const Info = ({ repo, t, i18n_lang }: RepositoryProps) => {
<span>{t('info.opensource')}</span>
<span className='mx-0.5 md:mx-1.5'></span>
<NoPrefetchLink href={`/license/${repo.license_lid}`}>
<span className='inline-flex max-w-[60px] cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap text-blue-500 md:max-w-full'>
<span className='inline-flex max-w-[65px] cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap text-blue-500 md:max-w-full'>
{repo.license}
</span>
</NoPrefetchLink>
Expand Down
1 change: 0 additions & 1 deletion src/pages/periodical/volume/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,5 @@ export async function getStaticProps({ params, locale }: any) {
volume,
...(await serverSideTranslations(locale, ['common', 'periodical'])),
},
revalidate: 60,
};
}

0 comments on commit 44f1fa1

Please sign in to comment.