Skip to content

Commit

Permalink
DESENG-675 Merge import statements, add warning style to widget deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Baelx committed Aug 22, 2024
1 parent c41422b commit 0d86c29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const WidgetPickerButton = ({ location }: { location: WidgetLocation }) =
openNotificationModal({
open: true,
data: {
style: 'warning',
header: 'Remove Widget',
subText: [
{ text: 'You will be removing this widget from the engagement.' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { useAppDispatch } from 'hooks';
import { openNotification } from 'services/notificationService/notificationSlice';
import { postDocument } from 'services/widgetService/DocumentService';
import { WidgetDrawerContext } from '../WidgetDrawerContext';
import { WidgetType } from 'models/widget';
import { WidgetType, WidgetLocation } from 'models/widget';
import { DOCUMENT_TYPE } from 'models/document';
import { WidgetLocation } from 'models/widget';

const CreateFolderForm = () => {
const { loadDocuments, handleAddFileDrawerOpen, setUploadFileDrawerOpen } = useContext(DocumentsContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import { WidgetTabValues } from '../type';
import { ActionContext } from '../../ActionContext';
import { openNotification } from 'services/notificationService/notificationSlice';
import { useAppDispatch } from 'hooks';
import { WidgetType } from 'models/widget';
import { WidgetType, WidgetLocation } from 'models/widget';
import { Else, If, Then } from 'react-if';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faUserGroupSimple } from '@fortawesome/pro-regular-svg-icons/faUserGroupSimple';
import { useCreateWidgetMutation } from 'apiManager/apiSlices/widgets';
import { optionCardStyle } from '../constants';
import { WidgetLocation } from 'models/widget';

const Title = 'Who is Listening';
const WhoIsListeningOptionCard = () => {
Expand Down

0 comments on commit 0d86c29

Please sign in to comment.