@rpg-engine/long-bow 0.6.20 → 0.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.20",
3
+ "version": "0.6.21",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -2,15 +2,12 @@ import { ICharacterPartyShared, isMobileOrTablet } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { uiColors } from '../../../constants/uiColors';
5
- import { DraggableContainer } from '../../DraggableContainer';
6
- import { RPGUIContainerTypes } from '../../RPGUI/RPGUIContainer';
7
5
  import { PartyManagerRow } from './PartyManagerRows';
8
6
 
9
7
  export interface IPartyManagerProps {
10
8
  partyRows: ICharacterPartyShared | null;
11
9
  isLeader: boolean;
12
10
  userId: string;
13
- onClose?: () => void;
14
11
  onRemovePlayer: (id: string) => void;
15
12
  onChangeLeader: (id: string) => void;
16
13
  }
@@ -19,20 +16,13 @@ export const PartyManager: React.FC<IPartyManagerProps> = ({
19
16
  partyRows,
20
17
  isLeader,
21
18
  userId,
22
- onClose,
23
19
  onRemovePlayer,
24
20
  onChangeLeader,
25
21
  }) => {
26
22
  const invitationActionText = isMobileOrTablet() ? 'Tap' : 'Right click';
27
23
 
28
24
  return (
29
- <DraggableContainer
30
- type={RPGUIContainerTypes.Framed}
31
- onCloseButton={onClose}
32
- width="800px"
33
- height="400px"
34
- cancelDrag=".partyRows"
35
- >
25
+ <>
36
26
  <Wrapper>
37
27
  <div style={{ width: '100%' }}>
38
28
  <Title>Party Dashboard</Title>
@@ -77,7 +67,7 @@ export const PartyManager: React.FC<IPartyManagerProps> = ({
77
67
  </NotInParty>
78
68
  )}
79
69
  </RowsWrapper>
80
- </DraggableContainer>
70
+ </>
81
71
  );
82
72
  };
83
73