mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-24 00:29:49 +00:00
41 lines
1012 B
TypeScript
41 lines
1012 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Button, Intent } from '@blueprintjs/core';
|
|
import { FormattedMessage as T, EmptyStatus } from '@/components';
|
|
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
|
|
|
import { compose } from '@/utils';
|
|
|
|
function BranchesEmptyStatus({
|
|
// #withDialogActions
|
|
openDialog,
|
|
}) {
|
|
// Handle activate action branch.
|
|
const handleActivateBranch = () => {
|
|
openDialog('branch-activate', {});
|
|
};
|
|
|
|
return (
|
|
<EmptyStatus
|
|
title={<T id={'branches.empty_status.title'} />}
|
|
description={
|
|
<p>
|
|
<T id={'branches.empty_status.description'} />
|
|
</p>
|
|
}
|
|
action={
|
|
<React.Fragment>
|
|
<Button
|
|
intent={Intent.PRIMARY}
|
|
large={true}
|
|
onClick={handleActivateBranch}
|
|
>
|
|
<T id={'branches.activate_button'} />
|
|
</Button>
|
|
</React.Fragment>
|
|
}
|
|
/>
|
|
);
|
|
}
|
|
export default compose(withDialogActions)(BranchesEmptyStatus);
|