Skip to content

Commit 6688d3d

Browse files
author
Mingze
authored
feat(discoverability): Change to new custom cursor if FF is on (#601)
1 parent 0ff04b1 commit 6688d3d

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

src/region/RegionAnnotations.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import classNames from 'classnames';
23
import PopupReply from '../components/Popups/PopupReply';
34
import RegionCreator from './RegionCreator';
45
import RegionList from './RegionList';
@@ -79,14 +80,16 @@ export default class RegionAnnotations extends React.PureComponent<Props, State>
7980
};
8081

8182
renderCreator = (): JSX.Element => {
82-
const { isCreating, isRotated } = this.props;
83+
const { isCreating, isDiscoverabilityEnabled, isRotated } = this.props;
8384
const canCreate = isCreating && !isRotated;
8485

8586
return (
8687
<>
8788
{canCreate && (
8889
<RegionCreator
89-
className="ba-RegionAnnotations-creator"
90+
className={classNames('ba-RegionAnnotations-creator', {
91+
'is-discoverability-enabled': isDiscoverabilityEnabled,
92+
})}
9093
onStart={this.handleStart}
9194
onStop={this.handleStop}
9295
/>

0 commit comments

Comments
 (0)