mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36:27 +01:00
Fix missing key prop
This commit is contained in:
parent
8379f8613e
commit
f398c32ed1
@ -9,12 +9,12 @@ import { useRoomContext } from '../../RoomContext';
|
|||||||
|
|
||||||
export const RoomToolsWidgetView: FC<{}> = props =>
|
export const RoomToolsWidgetView: FC<{}> = props =>
|
||||||
{
|
{
|
||||||
const [ isZoomedIn, setIsZoomedIn ] = useState(false);
|
const [ isZoomedIn, setIsZoomedIn ] = useState<boolean>(false);
|
||||||
const [ roomName, setRoomName ] = useState(null);
|
const [ roomName, setRoomName ] = useState<string>(null);
|
||||||
const [ roomOwner, setRoomOwner ] = useState(null);
|
const [ roomOwner, setRoomOwner ] = useState<string>(null);
|
||||||
const [ roomTags, setRoomTags ] = useState(null);
|
const [ roomTags, setRoomTags ] = useState<string[]>(null);
|
||||||
const [ roomInfoDisplay, setRoomInfoDisplay ] = useState(false);
|
const [ roomInfoDisplay, setRoomInfoDisplay ] = useState<boolean>(false);
|
||||||
const [ isOpen, setIsOpen ] = useState(false);
|
const [ isOpen, setIsOpen ] = useState<boolean>(false);
|
||||||
const [ navigatorData, setNavigatorData ] = useSharedState<NavigatorData>('@navigatorData');
|
const [ navigatorData, setNavigatorData ] = useSharedState<NavigatorData>('@navigatorData');
|
||||||
const { widgetHandler = null } = useRoomContext();
|
const { widgetHandler = null } = useRoomContext();
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ export const RoomToolsWidgetView: FC<{}> = props =>
|
|||||||
</Column>
|
</Column>
|
||||||
{ roomTags && roomTags.length > 0 &&
|
{ roomTags && roomTags.length > 0 &&
|
||||||
<Flex gap={ 2 }>
|
<Flex gap={ 2 }>
|
||||||
{ roomTags.map((tag: string) => <Text small variant="white" className="rounded bg-primary p-1">#{ tag }</Text>) }
|
{ roomTags.map((tag, index) => <Text key={ index } small variant="white" className="rounded bg-primary p-1">#{ tag }</Text>) }
|
||||||
</Flex> }
|
</Flex> }
|
||||||
</Column>
|
</Column>
|
||||||
</Column>
|
</Column>
|
||||||
|
Loading…
Reference in New Issue
Block a user