react-bootstrap#ToastHeader TypeScript Examples

The following examples show how to use react-bootstrap#ToastHeader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: notification-toast.component.tsx    From cwa-quick-test-frontend with Apache License 2.0 6 votes vote down vote up
NotificationToast = (props: any) => {

    const { t } = useTranslation();

    return (
        <div className='toast-container'>
            <Toast className='qt-notification'
                show={props.show}
                delay={3000}
                autohide
                onClose={() => props.setNotificationShow(false)}
            >
                <ToastHeader closeButton={false} className='qt-notification-header'>
                    <Image src={successIcon} className='mr-3 my-3' />
                    <p className='qt-notification-text my-auto mx-1'>
                        {t('translation:successfull-transferred')}
                    </p>
                </ToastHeader>
            </Toast>
        </div>
    )
}