mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 23:57:55 -05:00
Remove use of new studios feature flag
This commit is contained in:
parent
414503f340
commit
3ef41d2790
2 changed files with 2 additions and 4 deletions
|
@ -147,8 +147,6 @@ module.exports.selectStudioCommentsGloballyEnabled = state =>
|
|||
module.exports.selectMuteStatus = state => get(state, ['session', 'session', 'permissions', 'mute_status'],
|
||||
{muteExpiresAt: 0, offenses: [], showWarning: false});
|
||||
module.exports.selectIsMuted = state => (module.exports.selectMuteStatus(state).muteExpiresAt || 0) * 1000 > Date.now();
|
||||
module.exports.selectNewStudiosLaunched = state => get(state, ['session', 'session', 'flags', 'new_studios_launched'],
|
||||
false);
|
||||
module.exports.selectStudioTransferLaunched = state => get(state, ['session', 'session', 'flags',
|
||||
'studio_transfer_launched'], false);
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ const {connect} = require('react-redux');
|
|||
const {useState} = require('react');
|
||||
const projectShape = require('./projectshape.jsx').projectShape;
|
||||
|
||||
import {selectIsMuted, selectNewStudiosLaunched} from '../../redux/session.js';
|
||||
import {selectIsMuted} from '../../redux/session.js';
|
||||
import StudioMuteEditMessage from '../studio/studio-mute-edit-message.jsx';
|
||||
|
||||
require('./subactions.scss');
|
||||
|
@ -159,6 +159,6 @@ Subactions.propTypes = {
|
|||
|
||||
module.exports = connect(
|
||||
state => ({
|
||||
showAddToStudioMuteError: selectNewStudiosLaunched(state) && selectIsMuted(state)
|
||||
showAddToStudioMuteError: selectIsMuted(state)
|
||||
})
|
||||
)(Subactions);
|
||||
|
|
Loading…
Reference in a new issue