Add rating tooltip

Summary: I felt it would be good to say what these stars are actually for.

Reviewed By: passy

Differential Revision: D16457243

fbshipit-source-id: 961933f71efdcb6835936d5e1da7fe817eccc996
This commit is contained in:
John Knox
2019-07-25 07:09:32 -07:00
committed by Facebook Github Bot
parent dbfc7ae416
commit b0140c6364

View File

@@ -5,8 +5,8 @@
* @format
*/
import {Component, type Element} from 'react';
import {Glyph} from 'flipper';
import {Component, type Element, Fragment} from 'react';
import {Glyph, Tooltip} from 'flipper';
import {getInstance as getLogger} from '../fb-stubs/Logger';
import GK from '../fb-stubs/GK';
@@ -72,6 +72,13 @@ export default class RatingButton extends Component<Props, State> {
/>
</div>
));
return stars;
const button = <Fragment>{stars}</Fragment>;
return (
<Tooltip
options={{position: 'toLeft'}}
title="How would you rate Flipper?"
children={button}
/>
);
}
}