Skip to content

Commit 9dec7da

Browse files
committed
chore(refactor): use star imports
1 parent 47def9f commit 9dec7da

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/web/src/components/Search/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface SearchBarProps {
1616
characters?: { name: string; image: string }[]
1717
}
1818

19-
export default function SearchBar({
19+
export function SearchBar({
2020
recentSearches = [],
2121
characters = []
2222
}: SearchBarProps) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./SearchBar"

apps/web/src/components/layouts/AppLayout/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client"
22

33
import { useAuth } from "@/app/context/AuthContext"
4-
import SearchBar from "@/components/Search/SearchBar"
54
import { Sidebar } from "@/components/layouts/AppLayout/Sidebar/Sidebar"
65
import { Button } from "@mav/ui/components/buttons"
76
import { MyArtverseIcon } from "@mav/ui/icons"
@@ -10,6 +9,7 @@ import { useState } from "react"
109
import { LuMenu } from "react-icons/lu"
1110
import { ActionsLoggedIn } from "./ActionsLoggedIn"
1211
import { ActionsLoggedOut } from "./ActionsLoggedOut"
12+
import { SearchBar } from "@/components/Search"
1313

1414
export function Navbar() {
1515
const { user, isLoading } = useAuth()

0 commit comments

Comments
 (0)