Skip to content

Commit

Permalink
alt attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSGould committed May 15, 2024
1 parent d745178 commit 4743607
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"framer-motion": "^11.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"react-router-dom": "^6.23.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
Expand Down
6 changes: 1 addition & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import React, { useEffect, useState } from 'react';
import { useState } from 'react';
import Header from './core/Header';
import Nav from './core/Nav';

function App() {
const [isNavOpen, setIsNavOpen] = useState(true);

useEffect(() => {
console.log(isNavOpen);
}, [isNavOpen]);

return (
<main className='bg-tertiary h-screen'>
<Header setIsNavOpen={setIsNavOpen} />
Expand Down
5 changes: 4 additions & 1 deletion src/icons/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ export default function Avatar() {
return (
<div className='avatar h-5 w-5'>
<div className='w-24 rounded-full'>
<img src='https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg' />
<img
alt='profile'
src='https://img.daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg'
/>
</div>
</div>
);
Expand Down

0 comments on commit 4743607

Please sign in to comment.