Skip to content

Commit

Permalink
fix: broken ActiveUsers import and snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Dec 6, 2023
1 parent 4c9b072 commit b06a360
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
32 changes: 16 additions & 16 deletions app/src/components/model/board/__snapshots__/Board.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ exports[`Board renders Board 1`] = `
</button>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
<div
class="active-users-overlay"
>
Expand All @@ -186,14 +194,6 @@ exports[`Board renders Board 1`] = `
/>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
</div>
</div>
</body>,
Expand Down Expand Up @@ -364,6 +364,14 @@ exports[`Board renders Board 1`] = `
</button>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
<div
class="active-users-overlay"
>
Expand All @@ -379,14 +387,6 @@ exports[`Board renders Board 1`] = `
/>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
</div>
</div>,
"debug": [Function],
Expand Down
3 changes: 1 addition & 2 deletions app/src/components/model/panels/ActiveUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const initials = (name) =>
.map((p) => p[0])
.join("");

function ActiveUsers() {
export function ActiveUsers() {
const activeUsers = useSelector(
({ webSocket: { activeUsers } }) => activeUsers
);
Expand Down Expand Up @@ -37,4 +37,3 @@ function ActiveUsers() {
</div>
);
}
export default ActiveUsers;

0 comments on commit b06a360

Please sign in to comment.