Skip to content
Snippets Groups Projects
Commit ad93d13d authored by HyunjinNoh's avatar HyunjinNoh
Browse files

favorite 목록 나타나긴 함

parent 2a16f88f
No related branches found
No related tags found
No related merge requests found
import React from 'react';
import music_list from './data';
import SearchPage from './SearchPage';
import Favorites from './Favorites';
import {Box, Tabs, Tab, Typography, AppBar, CssBaseline} from '@mui/material';
import {Box, Tabs, Tab, Typography, AppBar} from '@mui/material';
export default function App () {
const [currentTab, setCurrentTab] = React.useState(0);
......@@ -29,7 +28,7 @@ export default function App () {
</Box>
{currentTab == 0 && <SearchPage list = {searchResult} onSearch = {setSearchResult} likes = {likes} setLikes = {setLikes}/>}
{currentTab == 1 && <Typography align = "center" variant = "h2" likes = {likes} setLikes = {setLikes}> Favorites </Typography>}
{currentTab == 1 && <Favorites align = "center" variant = "h2" likes = {likes} setLikes = {setLikes}/>}
{currentTab == 2 && <Typography align = "center" variant = "h2"> Item Three </Typography>}
</React.Fragment>
)
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment