Skip to content

Commit

Permalink
perf(icons): update imports from phosphor-react to use `@phosphor-i…
Browse files Browse the repository at this point in the history
…cons/react`

improved performance and a significantly smaller bundle size
  • Loading branch information
allbertuu committed Feb 6, 2024
1 parent d69f524 commit 3d44335
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Briefcase as BriefcaseIcon,
Heart as HeartIcon,
UserList as UserListIcon,
} from 'phosphor-react';
} from '@phosphor-icons/react';
import { useEffect } from 'react';
import { ExternalLink } from './components/ExternalLink';
import { Footer } from './components/Footer';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import imgLogo from '@/assets/imgs/logo.svg';
import { SendMeAnEmail } from '@/components/SendMeAnEmail';
import { Folders, IdentificationCard } from 'phosphor-react';
import { Folders, IdentificationCard } from '@phosphor-icons/react';

type THeaderProps = React.HTMLAttributes<HTMLElement>;

Expand Down
2 changes: 1 addition & 1 deletion src/components/MySocials/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import GitHubLogo from '@/assets/icons/GitHub';
import aboutMe from '@/data/aboutMe.json';
import { classNames } from '@/utils/index';
import { FileText, LinkedinLogo } from 'phosphor-react';
import { FileText, LinkedinLogo } from '@phosphor-icons/react';
import { ExternalLink } from '../ExternalLink';

type TMySocialsProps = React.HTMLAttributes<HTMLDivElement>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProjectCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GitHubIcon from '@/assets/icons/GitHub';
import { Broadcast as BroadcastIcon } from 'phosphor-react';
import { Broadcast as BroadcastIcon } from '@phosphor-icons/react';
import { ExternalLink } from '../ExternalLink';
import { classNames } from '@/utils';

Expand Down
2 changes: 1 addition & 1 deletion src/components/SendMeAnEmail/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sendEmail } from '@/utils';
import { EnvelopeSimple } from 'phosphor-react';
import { EnvelopeSimple } from '@phosphor-icons/react';

export const draftEmail = {
subject: 'Olá, Alberto! Acabo de ver seu portfólio, vamos conversar?',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToTop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { classNames, scrollWindowToTop } from '@/utils';
import { ArrowUp as ArrowUpIcon } from 'phosphor-react';
import { ArrowUp as ArrowUpIcon } from '@phosphor-icons/react';
import { useEffect, useState } from 'react';

type TToTopProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
Expand Down

0 comments on commit 3d44335

Please sign in to comment.