Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the UI of button and elements - My story page #211

Closed
Closed
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
2 changes: 1 addition & 1 deletion src/components/ProductList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ProductList = ({ setProductQuery }) => {

return (
<div className='product-list-container'>
<h4>Select a Product</h4>
<h3>Select a Product</h3>
<div className='flex flex-row flex-center product-list'>
{!products &&
Array(productCount)
Expand Down
6 changes: 5 additions & 1 deletion src/components/StoriesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ const StoriesList = (props) => {
)
})
) : (
<h3>No stories</h3>
<center>
<h2>
No stories! Create your first story <Link to='/newStory'>here</Link>
</h2>
</center>
)}
</div>
)
Expand Down
26 changes: 15 additions & 11 deletions src/pages/MyStories.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,29 @@ const MyStories = () => {
<Navigation />
<div className='body-content'>
<div className='body-wrapper my-stories'>
<h3>My Stories</h3>
<h2>My Stories</h2>
<div className='flex flex-row roadmap-one'>
<Button
className={
currentStateSelected === 'My Submissions'
? 'btn btn-tabs btn-tabs-selected'
: 'btn btn-tabs'
}
className={`btn btn-default
${
currentStateSelected === 'My Submissions'
? 'btn btn-tabs btn-tabs-selected'
: 'btn btn-tabs'
}
`}
onClick={() => selectState('My Submissions')}
>
My Submissions
</Button>
&nbsp; &nbsp;
<Button
className={
currentStateSelected === 'Following'
? 'btn btn-tabs btn-tabs-selected'
: 'btn btn-tabs'
}
className={`btn btn-default
${
currentStateSelected === 'Following'
? 'btn btn-tabs btn-tabs-selected'
: 'btn btn-tabs'
}
`}
onClick={() => selectState('Following')}
>
Following
Expand Down