update design of registration page
parent
56412df2b4
commit
ba35a8cb24
@ -1,11 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import { SessionHtmlRenderer } from './SessionHTMLRenderer';
|
||||
|
||||
export const AccentText: React.FC = () => (
|
||||
<div className="session-content-accent-text">
|
||||
<div className="session-content-accent-text title">
|
||||
<SessionHtmlRenderer html={window.i18n('beginYourSession')} />
|
||||
</div>
|
||||
<div className="session-content-accent-text title">{window.i18n('beginYourSession')}</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -1,38 +0,0 @@
|
||||
import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
|
||||
export enum TabType {
|
||||
SignUp,
|
||||
SignIn,
|
||||
}
|
||||
|
||||
export const TabLabel = ({
|
||||
isSelected,
|
||||
onSelect,
|
||||
type,
|
||||
}: {
|
||||
isSelected: boolean;
|
||||
onSelect?: (event: TabType) => void;
|
||||
type: TabType;
|
||||
}) => {
|
||||
const handleClick = onSelect
|
||||
? () => {
|
||||
onSelect(type);
|
||||
}
|
||||
: undefined;
|
||||
|
||||
const label = type === TabType.SignUp ? window.i18n('createAccount') : window.i18n('signIn');
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'session-registration__tab',
|
||||
isSelected ? 'session-registration__tab--active' : null
|
||||
)}
|
||||
onClick={handleClick}
|
||||
role="tab"
|
||||
>
|
||||
{label}
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue