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

Ability to star current application #207

Merged
merged 2 commits into from
Oct 24, 2023
Merged
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
Prev Previous commit
Star on mobile
  • Loading branch information
Evgeny Kuzyakov committed Oct 24, 2023
commit d641b798ad59f4f235bc5fd1ffd16a7e502eeb8e
10 changes: 7 additions & 3 deletions src/components/navigation/mobile/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MobileMenuButton } from "./MobileMenuButton";
import { NearSocialLogo } from "../../icons/NearSocialLogo";
import { NotificationWidget } from "../NotificationWidget";
import { SignInButton } from "../SignInButton";
import { StarButton } from "../StarButton";

const StyledNavigation = styled.div`
position: sticky;
Expand Down Expand Up @@ -58,9 +59,12 @@ export function Navigation(props) {
<NearSocialLogo />
</Link>
{props.signedIn ? (
<NotificationWidget
notificationButtonSrc={props.widgets.notificationButton}
/>
<div className="d-flex">
<StarButton {...props} />
<NotificationWidget
notificationButtonSrc={props.widgets.notificationButton}
/>
</div>
) : (
<SignInButton onSignIn={() => props.requestSignIn()} />
)}
Expand Down