convert Icon component from enum input to string type
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import styles from "../styles/Index.module.scss";
|
||||
import { useEffect, useState } from "react";
|
||||
import { SEO } from "../components/SEO";
|
||||
import { Icon, IconSet } from "../components/Icon";
|
||||
import { Icon } from "../components/Icon";
|
||||
import splashes from "../data/splashes.json";
|
||||
import Link from "next/link";
|
||||
import { IndexGallery } from "../components/IndexGallery/IndexGallery";
|
||||
@@ -64,16 +64,16 @@ const PageIndex = () => {
|
||||
</div>
|
||||
<main className="chips">
|
||||
<Link href="/discord" className="chip">
|
||||
discord <Icon icon={IconSet.Discord} />
|
||||
discord <Icon icon="Discord" />
|
||||
</Link>
|
||||
<Link href="/youtube" className="chip">
|
||||
youtube <Icon icon={IconSet.YouTube} />
|
||||
youtube <Icon icon="YouTube" />
|
||||
</Link>
|
||||
<Link href="/twitter" className="chip">
|
||||
twitter <Icon icon={IconSet.Twitter} />
|
||||
twitter <Icon icon="Twitter" />
|
||||
</Link>
|
||||
<Link href="/github" className="chip">
|
||||
github <Icon icon={IconSet.GitHub} />
|
||||
github <Icon icon="GitHub" />
|
||||
</Link>
|
||||
</main>
|
||||
<IndexGallery />
|
||||
|
||||
Reference in New Issue
Block a user