@@ -21,7 +21,7 @@ export interface Post extends Partial<NFTMetaData> {
2121}
2222
2323const ProfilePage : NextPage = ( ) => {
24- const [ activeTab , setActiveTab ] = useState ( "Listed " ) ;
24+ const [ activeTab , setActiveTab ] = useState ( "Bought " ) ;
2525
2626 const handleTabClick = ( tab : any ) => {
2727 setActiveTab ( tab ) ;
@@ -38,34 +38,29 @@ const ProfilePage: NextPage = () => {
3838 return (
3939 < >
4040 < ProfileInfo address = { address } />
41- < div className = "flex flex-col items-center justify-center" >
42- < div className = "tabs-bar " >
43- < button className = { `tab ${ activeTab === "Listed" ? "active" : "" } ` } onClick = { ( ) => handleTabClick ( "Listed" ) } >
44- Listed
45- </ button >
41+ < div className = "flex items-center justify-center" >
42+ < div className = "tabs-bar overflow-x-auto whitespace-nowrap flex" >
4643 < button className = { `tab ${ activeTab === "Bought" ? "active" : "" } ` } onClick = { ( ) => handleTabClick ( "Bought" ) } >
4744 Bought
4845 </ button >
49- < button className = { `tab 0 ${ activeTab === "Saved" ? "active" : "" } ` } onClick = { ( ) => handleTabClick ( "Saved" ) } >
46+ < button className = { `tab ${ activeTab === "Saved" ? "active" : "" } ` } onClick = { ( ) => handleTabClick ( "Saved" ) } >
5047 Saved
5148 </ button >
49+ < button className = { `tab ${ activeTab === "Listed" ? "active" : "" } ` } onClick = { ( ) => handleTabClick ( "Listed" ) } >
50+ Listed
51+ </ button >
5252 < button
5353 className = { `tab text-red-600 ${ activeTab === "Activity" ? "active" : "" } ` }
5454 onClick = { ( ) => handleTabClick ( "Activity" ) }
5555 >
5656 Activity
5757 </ button >
58- < button
59- className = { `tab text-red-600 ${ activeTab === "Revenue" ? "active" : "" } ` }
60- onClick = { ( ) => handleTabClick ( "Revenue" ) }
61- >
62- Revenue
63- </ button >
6458 </ div >
65- { activeTab === "Listed" && < ListedArticles /> }
66- { activeTab === "Bought" && < BoughtArticles /> }
67- { activeTab === "Saved" && < BookmarkedArticles /> }
6859 </ div >
60+
61+ { activeTab === "Bought" && < BoughtArticles /> }
62+ { activeTab === "Saved" && < BookmarkedArticles /> }
63+ { activeTab === "Listed" && < ListedArticles /> }
6964 </ >
7065 ) ;
7166} ;
0 commit comments