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

fix: is like and save button color and text color notification alert #208

Merged
merged 2 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix: is like and save button color and text color notification alert
  • Loading branch information
farhanreizha committed Jul 27, 2022
commit 4ec4efefe47b06c181be4737e3a3805c2553cfa3
4 changes: 2 additions & 2 deletions resources/js/Components/Default/NotificationAlert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nothing = () => {
const isNotif = (message) => {
if (message) {
return <div className="toast toast-top toast-center z-10" >
<div className="alert bg-primary text-black dark:text-dark">
<div className="alert bg-primary text-white dark:text-dark">
<span className="text-sm">{message}</span>
</div>
</div>
Expand All @@ -18,4 +18,4 @@ const NotificationAlert = ({ message }) => {
return isNotif(message);
}

export default NotificationAlert
export default NotificationAlert
4 changes: 2 additions & 2 deletions resources/js/Components/Homepage/PostList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function PostList(props) {
: `bg-secondary uppercase border-none rounded-md btn-sm
${
props.is_liked_post
? "hover:bg-primary bg-secondary-focus"
? "hover:bg-primary bg-primary-focus"
: "bg-secondary hover:bg-primary hover:text-base-100"
}`
}
Expand All @@ -183,7 +183,7 @@ export default function PostList(props) {
: `bg-secondary uppercase rounded-md btn-sm
${
props.is_saved_post
? "hover:bg-primary bg-secondary-focus"
? "hover:bg-primary bg-primary-focus"
: "bg-secondary hover:bg-primary hover:text-base-100"
}`
}
Expand Down