Merge pull request #748 from nowcommunity/remove-contact-button-from-selecting-tables

Removed contact button from selecting tables
This commit is contained in:
Kari Lintulaakso
2025-04-11 12:00:29 +03:00
committed by GitHub
@@ -209,9 +209,11 @@ export const TableView = <T extends MRT_RowData>({
<Divider sx={{ marginTop: '1rem' }} />
</>
)}
<Box sx={{ display: 'flex', gap: '0.4em', justifyContent: 'flex-end', margin: '0.5em', marginTop: '1em' }}>
<ContactForm<T> buttonText="Contact" noContext={true} />
</Box>
{!selectorFn && (
<Box sx={{ display: 'flex', gap: '0.4em', justifyContent: 'flex-end', margin: '0.5em', marginTop: '1em' }}>
<ContactForm<T> buttonText="Contact" noContext={true} />
</Box>
)}
{editRights.new && title != 'Locality-Species-Cross-Search' && (
<Box sx={{ display: 'flex', gap: '0.4em', justifyContent: 'flex-end', margin: '0.5em', marginTop: '1em' }}>
<Button variant="contained" component={Link} to="new">