Switch to new collaborators component (#1405)
Followup to https://github.com/tldraw/brivate/pull/1584 - Removes the old collaborators component, replacing with the new one. - Removes the associated debug flag ### Change Type <!-- 💡 Indicate the type of change your pull request is. --> <!-- 🤷♀️ If you're not sure, don't select anything --> <!-- ✂️ Feel free to delete unselected options --> <!-- To select one, put an x in the box: [x] --> - [ ] `patch` — Bug Fix - [ ] `minor` — New Feature - [x] `major` — Breaking Change - [ ] `dependencies` — Dependency Update (publishes a `patch` release, for devDependencies use `internal`) - [ ] `documentation` — Changes to the documentation only (will not publish a new version) - [ ] `tests` — Changes to any testing-related code only (will not publish a new version) - [ ] `internal` — Any other changes that don't affect the published package (will not publish a new version) ### Test Plan Check that multiplayer presence UI renders correctly - cursors - cursor hints (when a peer's cursor goes off the screen) - selection brush box - selection/erasing brush - selected shape(s) outline ### Release Notes - [Breaking] Removes the old version of LiveCollaborators, replacing it with the new one based on `TLInstancePresence`
This commit is contained in:
parent
a1e72014c6
commit
6a7dc12162
7 changed files with 31 additions and 206 deletions
|
@ -17,7 +17,6 @@ import { useQuickReactor } from '../hooks/useQuickReactor'
|
|||
import { useScreenBounds } from '../hooks/useScreenBounds'
|
||||
import { debugFlags } from '../utils/debug-flags'
|
||||
import { LiveCollaborators } from './LiveCollaborators'
|
||||
import { LiveCollaboratorsNext } from './LiveCollaboratorsNext'
|
||||
import { SelectionBg } from './SelectionBg'
|
||||
import { SelectionFg } from './SelectionFg'
|
||||
import { Shape } from './Shape'
|
||||
|
@ -128,11 +127,7 @@ export const Canvas = track(function Canvas({
|
|||
<HintedShapeIndicator />
|
||||
<SnapLinesWrapper />
|
||||
<SelectionFg />
|
||||
{debugFlags.newLiveCollaborators.value ? (
|
||||
<LiveCollaboratorsNext />
|
||||
) : (
|
||||
<LiveCollaborators />
|
||||
)}
|
||||
<LiveCollaborators />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue