Skip to content

Commit f8607f1

Browse files
committed
Move logo to components folder.
1 parent 7652b99 commit f8607f1

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

app/components/logo.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Link } from "react-router";
2+
3+
export function Logo() {
4+
return (
5+
<Link to="/" className="group grid leading-snug">
6+
<span className="font-light transition group-hover:-translate-x-1">
7+
epic
8+
</span>
9+
<span className="font-bold transition group-hover:translate-x-1">
10+
notes
11+
</span>
12+
</Link>
13+
)
14+
}

app/root.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { type Route } from './+types/root.ts'
1515
import appleTouchIconAssetUrl from './assets/favicons/apple-touch-icon.png'
1616
import faviconAssetUrl from './assets/favicons/favicon.svg'
1717
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
18+
import { Logo } from './components/logo.tsx'
1819
import { EpicProgress } from './components/progress-bar.tsx'
1920
import { SearchBar } from './components/search-bar.tsx'
2021
import { useToast } from './components/toaster.tsx'
@@ -234,19 +235,6 @@ function App() {
234235
)
235236
}
236237

237-
function Logo() {
238-
return (
239-
<Link to="/" className="group grid leading-snug">
240-
<span className="font-light transition group-hover:-translate-x-1">
241-
epic
242-
</span>
243-
<span className="font-bold transition group-hover:translate-x-1">
244-
notes
245-
</span>
246-
</Link>
247-
)
248-
}
249-
250238
function AppWithProviders() {
251239
const data = useLoaderData<typeof loader>()
252240
return (

0 commit comments

Comments
 (0)