Web:InvitePanel: Refactoring
This commit is contained in:
parent
e19547d493
commit
75c6333f3d
@ -62,7 +62,12 @@ const InvitePanel = ({
|
||||
currentDeviceType,
|
||||
}) => {
|
||||
const [invitePanelIsLoding, setInvitePanelIsLoading] = useState(
|
||||
!userLink || !guestLink || !adminLink || !collaboratorLink || roomId !== -1
|
||||
() =>
|
||||
!userLink ||
|
||||
!guestLink ||
|
||||
!adminLink ||
|
||||
!collaboratorLink ||
|
||||
roomId !== -1
|
||||
);
|
||||
const [selectedRoom, setSelectedRoom] = useState(null);
|
||||
const [hasErrors, setHasErrors] = useState(false);
|
||||
|
@ -30,7 +30,7 @@ const StyledTextInput = styled(Input).attrs((props) => ({
|
||||
css`
|
||||
background-color: ${(props) => props.theme.input.backgroundColor};
|
||||
-webkit-text-fill-color: ${(props) =>
|
||||
props?.value.length > 0
|
||||
props?.value?.length > 0
|
||||
? props.theme.text.color
|
||||
: props.theme.textInput.placeholderColor} !important;
|
||||
caret-color: ${(props) => props.theme.text.color};
|
||||
|
Loading…
Reference in New Issue
Block a user