Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 3x 3x 3x 7x 10x 7x 7x 1x 1x | import React from 'react';
import { Button, Modal, useI18nContext } from '@procore/core-react';
import { useScreenContext } from '../../../Context/ScreenContext';
export function SearchDirectoryFooter() {
const [, setCurrentScreen] = useScreenContext();
const i18n = useI18nContext();
return (
<Modal.Footer>
<Modal.FooterNotation>
<Button
variant="tertiary"
data-pendo="new-add-company-open-search-pcn-button"
onClick={() =>
setCurrentScreen({
currentScreen: 'SearchPCN',
previousScreen: 'SearchDirectory',
})
}
>
{i18n.t('views.generic.directory.add_company_package.search_pcn')}
</Button>
</Modal.FooterNotation>
<Modal.FooterButtons>
<Button
variant="secondary"
data-pendo="new-add-company-no-match-button"
onClick={() =>
setCurrentScreen({
currentScreen: 'ManuallyAdd',
previousScreen: 'SearchDirectory',
})
}
>
{i18n.t(
'views.generic.directory.add_company_package.create_new_company'
)}
</Button>
</Modal.FooterButtons>
</Modal.Footer>
);
}
|