Skip to content

Commit

Permalink
Merge pull request #1282 from near/prevent_bad_phospor_imports
Browse files Browse the repository at this point in the history
Prevent bad phospor imports
  • Loading branch information
charleslavon authored Aug 7, 2024
2 parents c7296a7 + f5659e7 commit dd831b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const nextConfig = {
poweredByHeader: false,
compiler: { styledComponents: true },
reactStrictMode: true,
experimental: {
optimizePackageImports: ['@phosphor-icons/react'],
},
redirects: async () => {
return [
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar-navigation/SmallScreenHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button } from '@near-pagoda/ui';
import { MagnifyingGlass } from '@phosphor-icons/react/dist/ssr';
import { MagnifyingGlass } from '@phosphor-icons/react';
import Image from 'next/image';
import { useRouter } from 'next/router';

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "types/**/*.d.ts", "src/components/sidebar-navigation/Sidebar", "src/components/sidebar-navigation/Sidebar"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "types/**/*.d.ts", "src/components/sidebar-navigation/Sidebar"],
"exclude": ["node_modules"]
}

0 comments on commit dd831b5

Please sign in to comment.