pl-fe: remove duplicate toaster

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-26 22:42:00 +02:00
parent a1a5df348d
commit cd3c35fcf9
2 changed files with 1 additions and 8 deletions

View file

@ -25,7 +25,7 @@ const MissingDescriptionModal: React.FC<BaseModalProps & MissingDescriptionModal
confirmationText={intl.formatMessage(messages.post)} confirmationText={intl.formatMessage(messages.post)}
confirmationTheme='danger' confirmationTheme='danger'
cancelText={intl.formatMessage(messages.cancel)} cancelText={intl.formatMessage(messages.cancel)}
cancelAction={onClose} cancelAction={() => onClose('MISSING_DESCRIPTION')}
> >
<p className='text-gray-600 dark:text-gray-300'> <p className='text-gray-600 dark:text-gray-300'>
<FormattedMessage id='missing_description_modal.description' defaultMessage='Continue anyway?' /> <FormattedMessage id='missing_description_modal.description' defaultMessage='Continue anyway?' />

View file

@ -1,7 +1,6 @@
import { QueryClientProvider } from '@tanstack/react-query'; import { QueryClientProvider } from '@tanstack/react-query';
import React from 'react'; import React from 'react';
import { HelmetProvider } from 'react-helmet-async'; import { HelmetProvider } from 'react-helmet-async';
import { Toaster } from 'react-hot-toast';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';
import { StatProvider } from 'pl-fe/contexts/stat-context'; import { StatProvider } from 'pl-fe/contexts/stat-context';
@ -40,12 +39,6 @@ const PlFe: React.FC = () => (
</StatProvider> </StatProvider>
</QueryClientProvider> </QueryClientProvider>
</Provider> </Provider>
<div id='toaster'>
<Toaster
position='top-right'
containerClassName='top-4'
/>
</div>
</> </>
); );