mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
76 lines
2.1 KiB
JavaScript
76 lines
2.1 KiB
JavaScript
import React, { useCallback } from 'react';
|
|
import { Icon, For } from 'components';
|
|
import { FormattedMessage as T } from 'react-intl';
|
|
import withAuthenticationActions from 'containers/Authentication/withAuthenticationActions';
|
|
import withAuthentication from 'containers/Authentication/withAuthentication';
|
|
import footerLinks from 'config/footerLinks';
|
|
import { compose } from 'utils';
|
|
|
|
|
|
function FooterLinkItem({ title, link }) {
|
|
return (
|
|
<div class="">
|
|
<a href={link} target="_blank">{ title }</a>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Wizard setup left section.
|
|
*/
|
|
function SetupLeftSection({
|
|
// #withAuthenticationActions
|
|
requestLogout,
|
|
|
|
// #withAuthentication
|
|
currentOrganizationId
|
|
}) {
|
|
const onClickLogout = useCallback(() => {
|
|
requestLogout();
|
|
}, [requestLogout]);
|
|
|
|
return (
|
|
<section className={'setup-page__left-section'}>
|
|
<div className={'content'}>
|
|
<div className={'content__logo'}>
|
|
<Icon icon="bigcapital" className={'bigcapital--alt'} height={37} width={190} />
|
|
</div>
|
|
|
|
<h1 className={'content__title'}>
|
|
<T id={'register_a_new_organization_now'} />
|
|
</h1>
|
|
|
|
<p className={'content__text'}>
|
|
<T id={'you_have_a_bigcapital_account'} />
|
|
</p>
|
|
<span class="content__divider"></span>
|
|
|
|
<div className={'content__organization'}>
|
|
<span class="organization-id">
|
|
Oragnization ID: <span class="id">{ currentOrganizationId }</span>,
|
|
</span>
|
|
<br />
|
|
<span class="signout">
|
|
<a onClick={onClickLogout} href="#"><T id={'sign_out'} /></a>
|
|
</span>
|
|
</div>
|
|
|
|
<div className={'content__footer'}>
|
|
<div className={'content__contact-info'}>
|
|
<p><T id={'we_re_here_to_help'} /> {'+21892-791-8381'}</p>
|
|
</div>
|
|
|
|
<div className={'content__links'}>
|
|
<For render={FooterLinkItem} of={footerLinks} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|
|
|
|
export default compose(
|
|
withAuthenticationActions,
|
|
withAuthentication(({ currentOrganizationId }) => ({ currentOrganizationId })),
|
|
)(SetupLeftSection);
|