From d4d20533556928f63c8759437f67e76336bab55e Mon Sep 17 00:00:00 2001
From: Joffrey Bion <joffrey.bion@booking.com>
Date: Mon, 6 Apr 2020 18:55:25 +0200
Subject: Delete old React/TypeScript UI

---
 sw-ui/src/components/game-browser/PlayerInfo.tsx | 27 ------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 sw-ui/src/components/game-browser/PlayerInfo.tsx

(limited to 'sw-ui/src/components/game-browser/PlayerInfo.tsx')

diff --git a/sw-ui/src/components/game-browser/PlayerInfo.tsx b/sw-ui/src/components/game-browser/PlayerInfo.tsx
deleted file mode 100644
index 4afed671..00000000
--- a/sw-ui/src/components/game-browser/PlayerInfo.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { Text } from '@blueprintjs/core';
-import React from 'react';
-import { connect } from 'react-redux';
-import { GlobalState } from '../../reducers';
-import { User } from '../../redux/user';
-import { getCurrentUser } from '../../redux/user';
-
-type PlayerInfoProps = {
-  user: User | null,
-}
-
-const PlayerInfoPresenter = ({user}: PlayerInfoProps) => (
-    <Text>
-      <b>Username:</b>
-      {' '}
-      {user && user.displayName}
-    </Text>
-);
-
-const mapStateToProps = (state: GlobalState): PlayerInfoProps => ({
-  user: getCurrentUser(state),
-});
-
-const mapDispatchToProps = {
-};
-
-export const PlayerInfo = connect(mapStateToProps, mapDispatchToProps)(PlayerInfoPresenter);
-- 
cgit 

