Skip to content

Commit e6c9b42

Browse files
authored
Merge pull request X-lab2017#118 from Apurv428/Q&A
[UI] Q&A section improved
2 parents 5817d8b + 3ae757e commit e6c9b42

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/components/QA2.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,33 @@ const QAmiss = () => {
2222

2323
return (
2424
<>
25-
<a
25+
<span
2626
onClick={showModal}
2727
style={{
2828
color: '#FFCC19',
2929
fontSize: '18px',
30+
cursor: 'pointer',
3031
}}
3132
>
3233
{t('tip')}
33-
</a>
34+
</span>
3435
<Modal
35-
title="Q&A"
36+
title={
37+
<div style={{ display: 'flex', alignItems: 'center' }}>
38+
<span style={{ flex: 1, textAlign: 'center' }}>Q&A</span>
39+
<CloseCircleOutlined
40+
style={{ fontSize: '30px', cursor: 'pointer' }}
41+
onClick={handleOk}
42+
/>
43+
</div>
44+
}
3645
width={'100%'}
3746
closable={false}
3847
visible={isModalVisible}
3948
onOk={handleOk}
4049
onCancel={handleCancel}
4150
bodyStyle={{ backgroundColor: 'rgba(0,0,0,0)' }}
42-
footer={[
43-
<CloseCircleOutlined
44-
style={{ fontSize: '30px' }}
45-
onClick={handleOk}
46-
/>,
47-
]}
51+
footer={null}
4852
style={{ margin: '0px auto', backgroundColor: 'rgba(0,0,0,0)' }}
4953
maskStyle={{ backgroundColor: 'rgba(0,0,0,0.8)' }}
5054
>

0 commit comments

Comments
 (0)