fix custom logo
This commit is contained in:
parent
24b90070b7
commit
35af05e594
@ -36,6 +36,7 @@ interface PresenceManagerProps extends PresenceManagerContainerProps {
|
||||
ejectReasonCode: string;
|
||||
bannerColor: string;
|
||||
bannerText: string;
|
||||
customLogoUrl: string;
|
||||
loggedOut: boolean;
|
||||
}
|
||||
|
||||
@ -57,6 +58,7 @@ const PresenceManager: React.FC<PresenceManagerProps> = ({
|
||||
ejectReasonCode,
|
||||
bannerColor,
|
||||
bannerText,
|
||||
customLogoUrl,
|
||||
loggedOut,
|
||||
}) => {
|
||||
const [allowToRender, setAllowToRender] = React.useState(false);
|
||||
@ -91,6 +93,7 @@ const PresenceManager: React.FC<PresenceManagerProps> = ({
|
||||
userName,
|
||||
extId,
|
||||
meetingName,
|
||||
customLogoUrl,
|
||||
});
|
||||
}, []);
|
||||
|
||||
@ -181,6 +184,7 @@ const PresenceManagerContainer: React.FC<PresenceManagerContainerProps> = ({ chi
|
||||
name: meetingName,
|
||||
bannerColor,
|
||||
bannerText,
|
||||
customLogoUrl,
|
||||
} = userInfoData.meeting[0];
|
||||
const { extId, name: userName, userId } = userInfoData.user_current[0];
|
||||
|
||||
@ -203,6 +207,7 @@ const PresenceManagerContainer: React.FC<PresenceManagerContainerProps> = ({ chi
|
||||
bannerColor={bannerColor}
|
||||
bannerText={bannerText}
|
||||
loggedOut={loggedOut}
|
||||
customLogoUrl={customLogoUrl}
|
||||
>
|
||||
{children}
|
||||
</PresenceManager>
|
||||
|
@ -24,6 +24,7 @@ export interface GetUserInfoResponse {
|
||||
logoutUrl: string;
|
||||
bannerColor: string;
|
||||
bannerText: string;
|
||||
customLogoUrl: string;
|
||||
}>;
|
||||
user_current: Array<{
|
||||
extId: string;
|
||||
@ -40,6 +41,7 @@ query getUserInfo {
|
||||
logoutUrl
|
||||
bannerColor
|
||||
bannerText
|
||||
customLogoUrl
|
||||
}
|
||||
user_current {
|
||||
extId
|
||||
|
@ -20,6 +20,7 @@ export const setUserDataToSessionStorage = (userData: {
|
||||
userName: string,
|
||||
extId: string,
|
||||
meetingName: string,
|
||||
customLogoUrl: string,
|
||||
}) => {
|
||||
sessionStorage.setItem('meetingId', userData.meetingId);
|
||||
sessionStorage.setItem('userId', userData.userId);
|
||||
@ -28,6 +29,7 @@ export const setUserDataToSessionStorage = (userData: {
|
||||
sessionStorage.setItem('userName', userData.userName);
|
||||
sessionStorage.setItem('extId', userData.extId);
|
||||
sessionStorage.setItem('meetingName', userData.meetingName);
|
||||
sessionStorage.setItem('CustomLogoUrl', userData.customLogoUrl);
|
||||
};
|
||||
|
||||
export default {
|
||||
|
@ -7,12 +7,13 @@ import UserContentContainer from './user-list-content/container';
|
||||
|
||||
const propTypes = {
|
||||
compact: PropTypes.bool,
|
||||
CustomLogoUrl: PropTypes.string.isRequired,
|
||||
CustomLogoUrl: PropTypes.string,
|
||||
showBranding: PropTypes.bool.isRequired,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
compact: false,
|
||||
CustomLogoUrl: null,
|
||||
};
|
||||
|
||||
class UserList extends PureComponent {
|
||||
|
Loading…
Reference in New Issue
Block a user