Skip to content

Commit b7bfa46

Browse files
authored
Merge pull request #55 from the-collab-lab/hm-manual-chunking-update
Updated the manual chunks in vite config
2 parents 2e61834 + e30b32e commit b7bfa46

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

src/components/NavBar.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ export function NavBar({ darkMode, toggleDarkMode }) {
6868
darkMode ? 'Switch to light mode' : 'Switch to dark mode'
6969
}
7070
>
71-
<button className=" rounded-full text-primary-pink hover:text-opacity-60">
72-
{darkMode ? <Eclipse /> : <Sun />}
73-
</button>
71+
{darkMode ? <Eclipse /> : <Sun />}
7472
</abbr>
7573
</Button>
7674
</div>
@@ -103,9 +101,7 @@ export function NavBar({ darkMode, toggleDarkMode }) {
103101
darkMode ? 'Switch to light mode' : 'Switch to dark mode'
104102
}
105103
>
106-
<button className="px-2 rounded-full text-primary-pink hover:text-opacity-60">
107-
{darkMode ? <Eclipse /> : <Sun />}
108-
</button>
104+
{darkMode ? <Eclipse /> : <Sun />}
109105
</abbr>
110106
</Button>
111107
{!!user ? (

src/views/Login.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ function Login() {
4646
className="fixed w-16 bottom-16 right-16 p-2 rounded-full text-primary-pink hover:text-primary-pink hover:text-opacity-60 font-semibold"
4747
>
4848
<abbr title={darkMode ? 'Switch to light mode' : 'Switch to dark mode'}>
49-
<button
50-
className={`${darkMode && 'dark'} rounded-full text-primary-pink hover:text-opacity-60`}
51-
>
52-
{darkMode ? <Eclipse /> : <Sun />}
53-
</button>
49+
{darkMode ? (
50+
<Eclipse className="w-8 h-8" />
51+
) : (
52+
<Sun className="w-8 h-8" />
53+
)}
5454
</abbr>
5555
</Button>
5656
</div>

vite.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ export default defineConfig(({ mode }) => ({
4545
output: {
4646
manualChunks: (id) => {
4747
if (id.includes('node_modules')) {
48-
if (id.includes('react')) {
49-
return 'vendor__react';
50-
}
5148
if (id.includes('firebase')) {
5249
return 'vendor__firebase';
5350
}

0 commit comments

Comments
 (0)