Skip to content

Commit

Permalink
feat: Use outline icons for mail/telegram
Browse files Browse the repository at this point in the history
Changes icons on board member info page
  • Loading branch information
IiroP authored and joonatanaatos committed Oct 24, 2024
1 parent b404712 commit 9d0b41e
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/components/board-grid/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Board, BoardMember, Media } from "@tietokilta/cms-types/payload";
import { GmailIcon, TelegramIcon, PhoneIcon } from "@tietokilta/ui";
import { MailIcon, SendIcon, PhoneIcon } from "@tietokilta/ui";
import Image from "next/image";
import TikLogo from "../../assets/TiK-logo.png";
import { cn, insertSoftHyphens } from "../../lib/utils";
Expand Down Expand Up @@ -35,7 +35,7 @@ function BoardMemberCard({ boardMember }: { boardMember: BoardMember }) {
className="flex items-center gap-1"
href={`mailto:${boardMember.email}`}
>
<GmailIcon className="size-6 shrink-0" />
<MailIcon className="size-6 shrink-0" />
<span className="underline">
{insertSoftHyphens(boardMember.email)}
</span>
Expand All @@ -48,7 +48,7 @@ function BoardMemberCard({ boardMember }: { boardMember: BoardMember }) {
rel="noopener noreferrer"
target="_blank"
>
<TelegramIcon className="size-6 shrink-0" />
<SendIcon className="size-6 shrink-0" />
<span className="underline">{boardMember.telegram}</span>
</a>
) : null}
Expand Down
8 changes: 8 additions & 0 deletions packages/cms-types/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ export type LinkRowBlockLink =
| 'Instagram'
| 'Languages'
| 'Linkedin'
| 'Mail'
| 'MapPin'
| 'Megaphone'
| 'Menu'
| 'MoreHorizontal'
| 'PaperAirplane'
| 'Phone'
| 'Telegram'
| 'TikLogo'
Expand Down Expand Up @@ -157,10 +159,12 @@ export interface Page {
| 'Instagram'
| 'Languages'
| 'Linkedin'
| 'Mail'
| 'MapPin'
| 'Megaphone'
| 'Menu'
| 'MoreHorizontal'
| 'PaperAirplane'
| 'Phone'
| 'Telegram'
| 'TikLogo'
Expand Down Expand Up @@ -237,10 +241,12 @@ export interface Topic {
| 'Instagram'
| 'Languages'
| 'Linkedin'
| 'Mail'
| 'MapPin'
| 'Megaphone'
| 'Menu'
| 'MoreHorizontal'
| 'PaperAirplane'
| 'Phone'
| 'Telegram'
| 'TikLogo'
Expand Down Expand Up @@ -909,10 +915,12 @@ export interface MainNavigationTopicConfig {
| 'Instagram'
| 'Languages'
| 'Linkedin'
| 'Mail'
| 'MapPin'
| 'Megaphone'
| 'Menu'
| 'MoreHorizontal'
| 'PaperAirplane'
| 'Phone'
| 'Telegram'
| 'TikLogo'
Expand Down
26 changes: 26 additions & 0 deletions packages/cms-types/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,12 @@ enum Page_icon {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -590,10 +592,12 @@ enum Topic_icon {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -714,10 +718,12 @@ enum Page_icon_Input {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -1320,10 +1326,12 @@ enum PageVersion_Version_icon {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -1475,10 +1483,12 @@ enum versionsPage_version__icon_Input {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -3106,10 +3116,12 @@ enum Topic_icon_Input {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -8706,10 +8718,12 @@ enum LinkRowBlockLink_icon {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -9217,10 +9231,12 @@ enum MainNavigationTopicConfig_Categories_ExternalLinks_icon {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -14953,10 +14969,12 @@ enum Page_icon_MutationInput {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -15041,10 +15059,12 @@ enum PageUpdate_icon_MutationInput {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -15184,10 +15204,12 @@ enum Topic_icon_MutationInput {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -15235,10 +15257,12 @@ enum TopicUpdate_icon_MutationInput {
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down Expand Up @@ -16204,10 +16228,12 @@ enum MainNavigation_Items_TopicConfig_Categories_ExternalLinks_icon_MutationInpu
Instagram
Languages
Linkedin
Mail
MapPin
Megaphone
Menu
MoreHorizontal
PaperAirplane
Phone
Telegram
TikLogo
Expand Down
6 changes: 6 additions & 0 deletions packages/ui/lib/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ import {
ImageIcon,
InboxIcon,
LanguagesIcon,
MailIcon,
MapPinIcon,
MegaphoneIcon,
MenuIcon,
MoreHorizontalIcon,
PhoneIcon,
SendIcon,
XIcon,
HandshakeIcon,
} from "lucide-react";
Expand Down Expand Up @@ -73,10 +75,12 @@ export const icons = {
Instagram: InstagramIcon,
Languages: LanguagesIcon,
Linkedin: LinkedinIcon,
Mail: MailIcon,
MapPin: MapPinIcon,
Megaphone: MegaphoneIcon,
Menu: MenuIcon,
MoreHorizontal: MoreHorizontalIcon,
PaperAirplane: SendIcon,
Phone: PhoneIcon,
Telegram: TelegramIcon,
TikLogo,
Expand Down Expand Up @@ -116,11 +120,13 @@ export {
InstagramIcon,
LanguagesIcon,
LinkedinIcon,
MailIcon,
MapPinIcon,
MegaphoneIcon,
MenuIcon,
MoreHorizontalIcon,
PhoneIcon,
SendIcon,
TelegramIcon,
TikLogo,
TiktokIcon,
Expand Down

0 comments on commit 9d0b41e

Please sign in to comment.