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

Greenlight version number only appears for admins #5893

Merged

Conversation

alihadimazeh
Copy link
Contributor

@alihadimazeh alihadimazeh commented Jul 24, 2024

@alihadimazeh alihadimazeh requested a review from farhatahmad July 24, 2024 21:47
import useEnv from '../../hooks/queries/env/useEnv';
import useSiteSetting from '../../hooks/queries/site_settings/useSiteSetting';

export default function Footer() {
export default function Footer({ currentUser = null }) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to get currentUser through props. Props are only needed if you need to track their state across multiple components. In this case, we can just get current user directly in the Footer component

- Changes to App.jsx: passed in currentUser to the Footer
- Footer renders the version number if the current user is an admin
  Footer component imports useAuth to get the current user
@alihadimazeh alihadimazeh force-pushed the 5884_hide_version_number branch from 02deb02 to 0506021 Compare July 25, 2024 19:11
Copy link

@farhatahmad farhatahmad merged commit 994ab7b into bigbluebutton:master Jul 25, 2024
3 checks passed
@sebastianberm
Copy link

Hmm, why not make this a setting instead with a default of hidden? - We use this to see which instances we still need to update...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[V3] Feature: Hide Greenlight Version Number
3 participants