Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .netlify/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"siteId": "0cbe7a28-e7c9-4830-adc2-d51d6edefb62"
}
1 change: 1 addition & 0 deletions spotify-song-suggester-app/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
20 changes: 10 additions & 10 deletions spotify-song-suggester-app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default function App() {
// artist: searchFormValue.artist.replace('/\s/', '%20')
// }
// )
history.push('/home/search')
history.push('/search')
console.log(newSearch)
getSearch(searchFormValue)
setSearchFormValue(initialSearchFormValue)
Expand All @@ -327,29 +327,29 @@ export default function App() {
onInputChange={onInputChange}

/>
</Route>
<Route exact path='/favorites/suggestions'>
</Route>
{/* <Route exact path='/favorites/suggestions'>
<Suggestions />
</Route>
<Route exact path='/favorites'>
</Route> */}
{/* <Route exact path='/favorites'>
<Favorites
values={formValues}
onInputChange={onInputChange}
/>
</Route>
</Route> */}
{/* <Route exact path='/home/search'>
<DisplaySearched />
</Route> */}



<Route path='/home/search' >
<Route path='/search' >
<DisplaySearched
searches={searches}

/>
</Route>
<Route exact path='/home'>
<Route exact path='/'>
<HomePage
searchFormValue={searchFormValue}
onSearch={onSearch}
Expand All @@ -360,12 +360,12 @@ export default function App() {
/>
</Route>

<Route exact path='/'>
{/* <Route exact path='/'>
<Login
values={formValues}
onInputChange={onInputChange}
/>
</Route>
</Route> */}



Expand Down
4 changes: 2 additions & 2 deletions spotify-song-suggester-app/src/components/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export default function HomePage(props) {

</Grid>
<Grid item>
<Button variant="outlined" color="primary">
{/* <Button variant="outlined" color="primary">
Secondary action
</Button>
</Button> */}
</Grid>
<div className='errors'>
<h3 className={classes.errorMessages} value={errors.song}>{errors.song}</h3>
Expand Down
6 changes: 3 additions & 3 deletions spotify-song-suggester-app/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const NavBar = () => {
<MenuTab/>
<div className={classes.appBar}>
<Button variant='outlined' color='secondary'>
<RouterLink color="secondary" to='/home' className={classes.linkButtons}>
<RouterLink color="secondary" to='/' className={classes.linkButtons}>

<Typography variant="h6" color="secondary" noWrap >
Home
Expand All @@ -96,11 +96,11 @@ const NavBar = () => {
<div className={classes.root}>
<ButtonGroup color="secondary" aria-label="outlined primary button group">
<Button>
<RouterLink color="secondary"to='/' className={classes.linkButtons}>
{/* <RouterLink color="secondary"to='/' className={classes.linkButtons}> */}
<Typography variant="h6" color="secondary" noWrap>
Log In
</Typography>
</RouterLink>
{/* </RouterLink> */}
</Button>

<Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function MenuTab() {
<ListItemText primary="Profile" />
</StyledMenuItem>

<NavLink style={{ textDecoration: 'none', color:'#1DB954'}} className={classes.linkButtons} to='/home/'>
<NavLink style={{ textDecoration: 'none', color:'#1DB954'}} className={classes.linkButtons} to='/'>
<StyledMenuItem>
<ListItemIcon>
<Headset fontSize="small" />
Expand All @@ -107,20 +107,20 @@ export default function MenuTab() {
<ListItemText primary="Github" />
</StyledMenuItem>
</Link>
<NavLink style={{ textDecoration: 'none', color:'#1DB954'}} className={classes.linkButtons} to='/favorites'>
{/* <NavLink style={{ textDecoration: 'none', color:'#1DB954'}} className={classes.linkButtons} to='/favorites'>
<StyledMenuItem>
<ListItemIcon>
<DraftsIcon fontSize="small" />
</ListItemIcon>
<ListItemText primary="Favorites" />
</StyledMenuItem>
</NavLink>
<StyledMenuItem style={{ textDecoration: 'none', color:'#1DB954'}}>
</NavLink> */}
{/* <StyledMenuItem style={{ textDecoration: 'none', color:'#1DB954'}}>
<ListItemIcon>
<InboxIcon fontSize="small" />
</ListItemIcon>
<ListItemText primary="Update User" />
</StyledMenuItem>
</StyledMenuItem> */}
</StyledMenu>
</div>
);
Expand Down