From ab352648fa48f1c6ccdac9fc27509728301b959f Mon Sep 17 00:00:00 2001 From: Marton Dobos Date: Mon, 22 Jan 2024 16:26:44 +0700 Subject: [PATCH 1/2] feat: x (twitter) & icon imports --- components/command-dialog.tsx | 27 ++++++++++++++++++++++----- components/social-share.tsx | 2 +- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/components/command-dialog.tsx b/components/command-dialog.tsx index 6ed6fcd..18373f8 100644 --- a/components/command-dialog.tsx +++ b/components/command-dialog.tsx @@ -3,8 +3,9 @@ import * as React from "react"; import { useRouter } from "next/navigation"; import { DialogProps } from "@radix-ui/react-alert-dialog"; -import { File, Github, Laptop, Mail, Moon, Sun, Twitter } from "lucide-react"; +import { File, Laptop, Mail, Moon, Sun } from "lucide-react"; import { useTheme } from "next-themes"; +import { siGithub, siX } from "simple-icons"; import siteMetadata, { defaultAuthor } from "@/lib/metadata"; import { navigationLinks } from "@/lib/navigation-links"; @@ -101,12 +102,20 @@ export function CommandDialogComponent({ ...props }: DialogProps) { { runCommand(() => - navigate(defaultAuthor.socialProfiles.find((platform) => platform.name === "twitter")?.link as string) + navigate(defaultAuthor.socialProfiles.find((platform) => platform.name === "x")?.link as string) ); }} > - - Twitter + + + + X (formerly Twitter) { @@ -115,7 +124,15 @@ export function CommandDialogComponent({ ...props }: DialogProps) { ); }} > - + + + Github diff --git a/components/social-share.tsx b/components/social-share.tsx index 82a6778..34c06e3 100644 --- a/components/social-share.tsx +++ b/components/social-share.tsx @@ -42,7 +42,7 @@ export const SocialShare = ({ url, text }: SocialShareProps) => { > - Twitter + X (formerly Twitter) From c8ecc8776c42d7c4b09572a831eadc1ec48ac89d Mon Sep 17 00:00:00 2001 From: Marton Dobos Date: Mon, 22 Jan 2024 16:27:05 +0700 Subject: [PATCH 2/2] chore: changlelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf8bd6..ce0096b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Importing brand icons from simple-icons +- Using "X (formerly Twitter)" as the name of the X user profile link + +### Fixed + +- Selecting X social link based on name X instead of twitter + ## [0.7.2] - 2023-09-02 ### Changed