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:
committed by
Facebook Github Bot
parent
dbfc7ae416
commit
b0140c6364
@@ -5,8 +5,8 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Component, type Element} from 'react';
|
import {Component, type Element, Fragment} from 'react';
|
||||||
import {Glyph} from 'flipper';
|
import {Glyph, Tooltip} from 'flipper';
|
||||||
import {getInstance as getLogger} from '../fb-stubs/Logger';
|
import {getInstance as getLogger} from '../fb-stubs/Logger';
|
||||||
import GK from '../fb-stubs/GK';
|
import GK from '../fb-stubs/GK';
|
||||||
|
|
||||||
@@ -72,6 +72,13 @@ export default class RatingButton extends Component<Props, State> {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
));
|
));
|
||||||
return stars;
|
const button = <Fragment>{stars}</Fragment>;
|
||||||
|
return (
|
||||||
|
<Tooltip
|
||||||
|
options={{position: 'toLeft'}}
|
||||||
|
title="How would you rate Flipper?"
|
||||||
|
children={button}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user