Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
gencay tekin
jitsi-meet
Commits
64d32a50
Unverified
Commit
64d32a50
authored
2 years ago
by
Shahab
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(premeeting): call hooks before any conditional block in ConnectionStatus (#11136)
parent
fbe15aaa
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
react/features/base/premeeting/components/web/ConnectionStatus.js
+6
-5
...atures/base/premeeting/components/web/ConnectionStatus.js
with
6 additions
and
5 deletions
react/features/base/premeeting/components/web/ConnectionStatus.js
+
6
−
5
View file @
64d32a50
...
...
@@ -148,11 +148,6 @@ const CONNECTION_TYPE_MAP = {
function
ConnectionStatus
({
connectionDetails
,
t
,
connectionType
}:
Props
)
{
const
classes
=
useStyles
();
if
(
connectionType
===
CONNECTION_TYPE
.
NONE
)
{
return
null
;
}
const
{
connectionClass
,
icon
,
connectionText
}
=
CONNECTION_TYPE_MAP
[
connectionType
];
const
[
showDetails
,
toggleDetails
]
=
useState
(
false
);
const
arrowClassName
=
showDetails
?
'
con-status-arrow con-status-arrow--up
'
...
...
@@ -174,6 +169,12 @@ function ConnectionStatus({ connectionDetails, t, connectionType }: Props) {
}
},
[
showDetails
,
toggleDetails
]);
if
(
connectionType
===
CONNECTION_TYPE
.
NONE
)
{
return
null
;
}
const
{
connectionClass
,
icon
,
connectionText
}
=
CONNECTION_TYPE_MAP
[
connectionType
];
return
(
<
div
className
=
{
classes
.
connectionStatus
}
>
<
div
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets