Skip to content

fix(cc-station-login): material design ui #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/contact-center/station-login/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const useStationLogin = (props: UseStationLoginProps) => {
const loginCb = props.onLogin;
const logoutCb = props.onLogout;
const logger = props.logger;
const deviceType = props.deviceType;
const [isAgentLoggedIn, setIsAgentLoggedIn] = useState(props.isAgentLoggedIn);
const [dialNumber, setDialNumber] = useState('');
const [deviceType, setDeviceType] = useState('');
const [team, setTeam] = useState('');
const [loginSuccess, setLoginSuccess] = useState<StationLoginSuccess>();
const [loginFailure, setLoginFailure] = useState<Error>();
Expand Down Expand Up @@ -104,7 +104,6 @@ export const useStationLogin = (props: UseStationLoginProps) => {

return {
name: 'StationLogin',
setDeviceType,
setDialNumber,
setTeam,
login,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {useStationLogin} from '../helper';
import {StationLoginProps} from './station-login.types';

const StationLoginComponent: React.FunctionComponent<StationLoginProps> = ({onLogin, onLogout}) => {
const {cc, teams, loginOptions, logger, deviceType, isAgentLoggedIn, handleContinue, showMultipleLoginAlert} = store;
const {cc, teams, loginOptions, logger, deviceType, isAgentLoggedIn, handleContinue, showMultipleLoginAlert, setDeviceType, currentTheme} = store;
const result = useStationLogin({
cc,
onLogin,
Expand All @@ -16,13 +16,16 @@ const StationLoginComponent: React.FunctionComponent<StationLoginProps> = ({onLo
isAgentLoggedIn,
handleContinue,
showMultipleLoginAlert,
deviceType
});

const props = {
...result,
teams,
loginOptions,
deviceType,
setDeviceType,
currentTheme
};
return <StationLoginPresentational {...props} />;
};
Expand Down
Loading