diff --git a/webapp/src/components/rhs_sidebar/rhs_sidebar.tsx b/webapp/src/components/rhs_sidebar/rhs_sidebar.tsx index b3777b13..d9eba46c 100644 --- a/webapp/src/components/rhs_sidebar/rhs_sidebar.tsx +++ b/webapp/src/components/rhs_sidebar/rhs_sidebar.tsx @@ -63,8 +63,8 @@ const UserHeader = (props: UserHeaderProps) => ( interface UserHeaderProps { currentUserId: string; - username: string; - gitlabURL: string; + username?: string; + gitlabURL?: string; } const Subscription = (props: SubscriptionProps) => { @@ -125,7 +125,7 @@ const Subscriptions = (props: SubscriptionsProps) => { }; interface SubscriptionsProps { - currentChannelId: string; + currentChannelId?: string; subscriptions: Subscription[]; } @@ -138,13 +138,13 @@ interface Subscription { interface RhsSidebarProps { currentUserId: string, connected: boolean, - username: string, - gitlabURL: string, - currentChannelId: string, - currentChannelSubscriptions: Subscription[], + username?: string, + gitlabURL?: string, + currentChannelId?: string, + currentChannelSubscriptions: Partial[], pluginServerRoute: string, actions: { - getChannelSubscriptions: (channel: string) => Promise, + getChannelSubscriptions: (channel: string) => Promise, sendEphemeralPost: (message: string) => void; } } @@ -184,7 +184,7 @@ export default class RHSSidebar extends React.PureComponent );