@@ -41,14 +41,9 @@ import AccessibleButton, { ButtonEvent } from "../elements/AccessibleButton";
4141import Field from "../elements/Field" ;
4242import withValidation from "../elements/Validation" ;
4343import RoomAliasField from "../elements/RoomAliasField" ;
44- import Modal from "../../../Modal" ;
45- import GenericFeatureFeedbackDialog from "../dialogs/GenericFeatureFeedbackDialog" ;
46- import SettingsStore from "../../../settings/SettingsStore" ;
4744import { getKeyBindingsManager } from "../../../KeyBindingsManager" ;
4845import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts" ;
4946import { MatrixClientPeg } from "../../../MatrixClientPeg" ;
50- import { shouldShowFeedback } from "../../../utils/Feedback" ;
51-
5247export const createSpace = async (
5348 name : string ,
5449 isPublic : boolean ,
@@ -118,40 +113,6 @@ const nameToLocalpart = (name: string): string => {
118113 . replace ( / [ ^ a - z 0 - 9 _ - ] + / gi, "" ) ;
119114} ;
120115
121- // XXX: Temporary for the Spaces release only
122- export const SpaceFeedbackPrompt : React . FC < {
123- onClick ?( ) : void ;
124- } > = ( { onClick } ) => {
125- if ( ! shouldShowFeedback ( ) ) return null ;
126-
127- return (
128- < div className = "mx_SpaceFeedbackPrompt" >
129- < span className = "mx_SpaceFeedbackPrompt_text" > { _t ( "Spaces are a new feature." ) } </ span >
130- < AccessibleButton
131- kind = "link_inline"
132- onClick = { ( ) => {
133- if ( onClick ) onClick ( ) ;
134- Modal . createDialog ( GenericFeatureFeedbackDialog , {
135- title : _t ( "Spaces feedback" ) ,
136- subheading : _t (
137- "Thank you for trying Spaces. " + "Your feedback will help inform the next versions." ,
138- ) ,
139- rageshakeLabel : "spaces-feedback" ,
140- rageshakeData : Object . fromEntries (
141- [ "Spaces.allRoomsInHome" , "Spaces.enabledMetaSpaces" ] . map ( ( k ) => [
142- k ,
143- SettingsStore . getValue ( k ) ,
144- ] ) ,
145- ) ,
146- } ) ;
147- } }
148- >
149- { _t ( "Give feedback." ) }
150- </ AccessibleButton >
151- </ div >
152- ) ;
153- } ;
154-
155116type BProps = Omit < ComponentProps < typeof SpaceBasicSettings > , "nameDisabled" | "topicDisabled" | "avatarDisabled" > ;
156117interface ISpaceCreateFormProps extends BProps {
157118 busy : boolean ;
@@ -316,8 +277,6 @@ const SpaceCreateMenu: React.FC<{
316277 />
317278
318279 < p > { _t ( "To join a space you'll need an invite." ) } </ p >
319-
320- < SpaceFeedbackPrompt onClick = { onFinished } />
321280 </ React . Fragment >
322281 ) ;
323282 } else {
0 commit comments