Skip to content

Commit

Permalink
Add tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Jan 13, 2025
1 parent 2cad483 commit 55a1ab5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { toast } from 'react-toastify';
import { ColumnMapping } from './ColumnMapping';
import { type ProcessedFile } from './fileProcessing';
import { BaseDialog } from '../../common/BaseDialog';
import { Tooltip } from 'react-tooltip';

interface ColumnMappingModalProps {
inputFile: ProcessedFile;
Expand Down Expand Up @@ -66,13 +67,19 @@ export const ColumnMappingModal: FC<ColumnMappingModalProps> = ({
<>
<button
className='text-xs break-words text-gray-700 py-1.5 px-4 border border-gray-300 rounded-md hover:bg-gray-50'
data-tooltip-id='columnMapping'
onClick={(e) => {
e.preventDefault();
openDialog();
}}
>
{openModalButtonText}
</button>
<Tooltip id='columnMapping' place='bottom'>
If you are not using our metadata template, this allows you to map
<br />
columns in your file to the fields expected by the database.
</Tooltip>
<BaseDialog title='Remap Columns' isOpen={isOpen} onClose={closeDialog} fullWidth={false}>
{currentMapping === null || inputColumns === null ? (
'Loading ...'
Expand Down

0 comments on commit 55a1ab5

Please sign in to comment.