Update [iconName].tsx

Revert "quickfix", mea culpa
This commit is contained in:
Karsa
2023-04-10 12:59:54 +02:00
committed by GitHub
parent e4ac2cc4e9
commit a796cb105d
+1 -3
View File
@@ -6,7 +6,6 @@ import IconOverview from '../../components/IconOverview';
import Layout from '../../components/Layout';
import { GetStaticPaths, GetStaticProps } from 'next';
import { getAllCategories } from 'src/lib/categories';
import {getAllReleases} from "../../lib/fetchAllReleases";
const IconPage = ({ icon, data, categories }): JSX.Element => {
const router = useRouter();
@@ -50,8 +49,7 @@ export default IconPage;
export const getStaticProps: GetStaticProps = async ({ params: { iconName } }) => {
const data = await getAllData({ withChildKeys: true });
const releases = await getAllReleases();
const icon = await getData(iconName as string, releases, { withChildKeys: true });
const icon = await getData(iconName as string, { withChildKeys: true });
const categories = await getAllCategories()
return { props: { icon, data, categories } };