1
1
import React , { useState , useEffect , useContext } from 'react' ;
2
2
import Fuse from 'fuse.js' ;
3
- import { Card , Header , Loading } from '../components' ;
3
+ import { Card , Header , Loading , Player } from '../components' ;
4
4
import * as ROUTES from '../constants/routes' ;
5
5
import logo from '../logo.svg' ;
6
6
import { FirebaseContext } from '../context/firebase' ;
@@ -40,7 +40,7 @@ export function BrowseContainer({ slides }) {
40
40
41
41
return profile . displayName ? (
42
42
< >
43
- { loading ? < Loading src = { `/images/users/ ${ user . photoURL } .png` } /> : < Loading . ReleaseBody /> }
43
+ { loading ? < Loading src = { user . photoURL } /> : < Loading . ReleaseBody /> }
44
44
45
45
< Header src = "joker1" >
46
46
< Header . Frame >
@@ -56,15 +56,12 @@ export function BrowseContainer({ slides }) {
56
56
< Header . Group >
57
57
< Header . Search searchTerm = { searchTerm } setSearchTerm = { setSearchTerm } />
58
58
< Header . Profile >
59
- < Header . Picture src = { `/images/users/ ${ user . photoURL } .png` } />
59
+ < Header . Picture src = { user . photoURL } />
60
60
< Header . Dropdown >
61
61
< Header . Group >
62
- < Header . Picture src = { `/images/users/ ${ user . photoURL } .png` } />
62
+ < Header . Picture src = { user . photoURL } />
63
63
< Header . TextLink > { user . displayName } </ Header . TextLink >
64
64
</ Header . Group >
65
- < Header . Group >
66
- < Header . TextLink onClick = { ( ) => console . log ( 'favourites' ) } > Favourites</ Header . TextLink >
67
- </ Header . Group >
68
65
< Header . Group >
69
66
< Header . TextLink onClick = { ( ) => firebase . auth ( ) . signOut ( ) } > Sign out</ Header . TextLink >
70
67
</ Header . Group >
@@ -99,7 +96,12 @@ export function BrowseContainer({ slides }) {
99
96
</ Card . Item >
100
97
) ) }
101
98
</ Card . Entities >
102
- < Card . Feature category = { category } />
99
+ < Card . Feature category = { category } >
100
+ < Player >
101
+ < Player . Button />
102
+ < Player . Video />
103
+ </ Player >
104
+ </ Card . Feature >
103
105
</ Card >
104
106
) ) }
105
107
</ Card . Group >
0 commit comments