mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-09 04:33:49 +00:00
25725bd79f
GitOrigin-RevId: e190ae569d5e2390e8bcf52672757cc7f269ea56
36 lines
985 B
TypeScript
36 lines
985 B
TypeScript
import { Button } from 'react-bootstrap'
|
|
import { FC, MouseEventHandler } from 'react'
|
|
|
|
export const RichTextSurveyInner: FC<{
|
|
handleDismiss: MouseEventHandler<Button>
|
|
openSurvey: () => void
|
|
}> = ({ handleDismiss, openSurvey }) => (
|
|
<div className="alert alert-success rich-text-survey-warning" role="alert">
|
|
<Button
|
|
className="close"
|
|
data-dismiss="alert"
|
|
aria-label="Close"
|
|
onClick={handleDismiss}
|
|
>
|
|
<span aria-hidden="true">×</span>
|
|
</Button>
|
|
<div className="warning-content">
|
|
<div>
|
|
<div className="warning-text">Have you used Rich Text mode?</div>
|
|
<div className="warning-text">
|
|
Please participate in our short survey.
|
|
</div>
|
|
</div>
|
|
<div className="upgrade-prompt">
|
|
<Button
|
|
type="button"
|
|
bsSize="sm"
|
|
bsStyle="primary"
|
|
onClick={openSurvey}
|
|
>
|
|
Take survey
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|