Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ export default function About() {
fitWidth
data-border="rounded"
>
{social.map(
{social
.filter((item) => item.essential)
.map(
(item) =>
item.link && (
<React.Fragment key={item.name}>
Expand Down
11 changes: 11 additions & 0 deletions src/resources/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,36 @@ const newsletter: Newsletter = {
const social: Social = [
// Links are automatically displayed.
// Import new icons in /once-ui/icons.ts
// Set essentials: true for links you want to show on the about page
{
name: "GitHub",
icon: "github",
link: "https://github.com/once-ui-system",
essential: true,
},
{
name: "LinkedIn",
icon: "linkedin",
link: "https://www.linkedin.com/company/once-ui/",
essential: true,
},
{
name: "Instagram",
icon: "instagram",
link: "https://www.instagram.com/once_ui/",
essential: false,
},
{
name: "Threads",
icon: "threads",
link: "https://www.threads.com/@once_ui",
essential: true,
},
{
name: "Email",
icon: "email",
link: `mailto:${person.email}`,
essential: true,
},
];

Expand Down
3 changes: 2 additions & 1 deletion src/resources/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
SiSupabase,
} from "react-icons/si";

import { FaDiscord, FaGithub, FaLinkedin, FaX, FaThreads, FaXTwitter, FaFacebook, FaPinterest, FaWhatsapp, FaReddit, FaTelegram, } from "react-icons/fa6";
import { FaDiscord, FaGithub, FaLinkedin, FaX, FaThreads, FaInstagram, FaXTwitter, FaFacebook, FaPinterest, FaWhatsapp, FaReddit, FaTelegram, } from "react-icons/fa6";

export const iconLibrary: Record<string, IconType> = {
arrowUpRight: HiArrowUpRight,
Expand Down Expand Up @@ -63,6 +63,7 @@ export const iconLibrary: Record<string, IconType> = {
whatsapp: FaWhatsapp,
reddit: FaReddit,
telegram: FaTelegram,
instagram: FaInstagram,
};

export type IconLibrary = typeof iconLibrary;
Expand Down