Search code examples
reactjsantd

Ant design drawer title to put div and space tag


Im using ant design drawer , I have some conflict i tried to add drawer title to space but not working , anyone know how to do that correctly ?

issue is

title={"My account no:" +   this.props.accountId}

here the conflict My account no:123456

i want to put some space with text and number like this My account no: 123456

Thanks

coed here.

 <Drawer
            title={"My account no:" +   this.props.accountId}
            width={720}
            onClose={this.onDrawerClose}
            maskClosable={false}
            visible={this.state.statusChangeDrawerVisible}
            bodyStyle={{ paddingBottom: 80 }}>

          </Drawer>

Solution

  • title={"My account no: " +   this.props.accountId}
    

    Keep space after ':' in "My account no: " just as above