Display user badges

This commit is contained in:
Evan Hahn 2021-11-02 18:01:13 -05:00 committed by GitHub
parent 927c22ef73
commit f647c4e053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
95 changed files with 2891 additions and 424 deletions

View file

@ -19,7 +19,8 @@ import {
getStartSearchCounter,
isSearching,
} from '../selectors/search';
import { getIntl, getRegionCode } from '../selectors/user';
import { getIntl, getRegionCode, getTheme } from '../selectors/user';
import { getBadgesById } from '../selectors/badges';
import { getPreferredLeftPaneWidth } from '../selectors/items';
import {
getCantAddContactForModal,
@ -159,6 +160,7 @@ const getModeSpecificProps = (
const mapStateToProps = (state: StateType) => {
return {
modeSpecificProps: getModeSpecificProps(state),
badgesById: getBadgesById(state),
canResizeLeftPane: window.Signal.RemoteConfig.isEnabled(
'desktop.internalUser'
),
@ -176,6 +178,7 @@ const mapStateToProps = (state: StateType) => {
renderRelinkDialog,
renderUpdateDialog,
renderCaptchaDialog,
theme: getTheme(state),
};
};