Skip to content

Commit

Permalink
Import Emoji component into Layout.jsx and replace previous span cont…
Browse files Browse the repository at this point in the history
…aining emoji with Emoji component
  • Loading branch information
piecanoe committed Apr 3, 2024
1 parent efecbe4 commit a098c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './SingleList';
export * from './Dialog';
export * from './AddItem';
export * from './SortedItemsMap';
export * from './Emoji';
7 changes: 2 additions & 5 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Outlet, NavLink } from 'react-router-dom';
import { useAuth, SignInButton, SignOutButton } from '../api/useAuth.jsx';

import { Emoji } from '../components';
import './Layout.css';
import { auth } from '../api/config.js';

Expand Down Expand Up @@ -39,10 +39,7 @@ export function Layout() {
</main>
<footer className="Layout-footer">
<p className="Layout-footer-attribution">
Crafted with care{' '}
<span role="img" aria-label="purple-heart">
💜{' '}
</span>
Crafted with care <Emoji label="purple-heart">💜</Emoji>
by{' '}
<a
className="Layout-footer-link"
Expand Down

0 comments on commit a098c2d

Please sign in to comment.