Updated a lot of components to PureComponents. Better performance.

This commit is contained in:
Håvar Aambø Fosstveit
2019-03-29 23:56:57 +01:00
parent 6a9ac30a8b
commit 2f19746fa9
21 changed files with 35 additions and 29 deletions
@@ -37,7 +37,7 @@ const styles = () =>
}
});
class FullView extends React.Component
class FullView extends React.PureComponent
{
constructor(props)
{
@@ -210,7 +210,7 @@ const styles = (theme) =>
}
});
class PeerView extends React.Component
class PeerView extends React.PureComponent
{
constructor(props)
{
@@ -83,7 +83,7 @@ const styles = () =>
}
});
class ScreenView extends React.Component
class ScreenView extends React.PureComponent
{
constructor(props)
{