Skip to content

Commit

Permalink
fix(chat): update code app delete button (Issue #2617) (#2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Derikyan authored Nov 19, 2024
1 parent d88229c commit 2f4a2a0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions apps/chat-e2e/src/tests/sharedFilesAttachments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ dialSharedWithMeTest(
additionalShareUserFileApiHelper,
errorToast,
additionalShareUserManageAttachmentsAssertion,
setIssueIds,
}) => {
setIssueIds('1596');
dialSharedWithMeTest.slow();
setTestIds(
'EPMRTC-4133',
Expand Down
2 changes: 1 addition & 1 deletion apps/chat-e2e/src/ui/selectors/iconSelectors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const IconSelectors = {
editIcon: '.tabler-icon-edit',
cancelIcon: '.tabler-icon-x',
deleteIcon: '.tabler-icon-trash',
deleteIcon: '.tabler-icon-trash-x',
playbackIcon: '.tabler-icon-player-play',
copyIcon: '.tabler-icon-copy',
replayIcon: '.tabler-icon-refresh-dot',
Expand Down
6 changes: 3 additions & 3 deletions apps/chat/src/components/Chat/ChatMessage/MessageButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
IconRefresh,
IconThumbDown,
IconThumbUp,
IconTrash,
IconTrashX,
} from '@tabler/icons-react';
import { ButtonHTMLAttributes, FC } from 'react';

Expand Down Expand Up @@ -106,7 +106,7 @@ export const MessageUserButtons = ({
className="text-secondary hover:text-accent-primary"
onClick={onDelete}
>
<IconTrash size={18} />
<IconTrashX size={18} />
</button>
</Tooltip>
</>
Expand Down Expand Up @@ -409,7 +409,7 @@ export const MessageMobileButtons = ({
onClick={onDelete}
item={
<div className="flex items-center gap-3">
<IconTrash className="text-secondary" size={18} />
<IconTrashX className="text-secondary" size={18} />
<p>{t('Delete')}</p>
</div>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconTrash } from '@tabler/icons-react';
import { IconX } from '@tabler/icons-react';
import { FC, memo, useCallback, useEffect, useState } from 'react';

import { useTranslation } from 'next-i18next';
Expand Down Expand Up @@ -93,7 +93,7 @@ const _SourceFilesEditor: FC<SourceFilesEditorProps> = ({
type="button"
className="text-secondary hover:text-accent-primary"
>
<IconTrash size={18} />
<IconX size={18} />
</button>
)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions apps/chat/src/components/Common/Forms/DynamicFormFields.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconPlus, IconTrash } from '@tabler/icons-react';
import { IconPlus, IconTrashX } from '@tabler/icons-react';
import { useMemo } from 'react';
import {
Control,
Expand Down Expand Up @@ -140,12 +140,12 @@ export const DynamicFormFields = <
type="button"
disabled={mapField(field).static}
className={classNames(
'flex items-start rounded border border-transparent pt-1 text-secondary outline-none hover:text-error',
'flex items-start rounded border border-transparent pt-1 text-secondary outline-none hover:text-accent-primary',
mapField(field).static && 'invisible',
)}
onClick={() => remove(i)}
>
<IconTrash size={18} />
<IconTrashX size={18} />
</button>
</div>
))}
Expand Down
4 changes: 2 additions & 2 deletions apps/chat/src/components/Files/FileManagerModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useId } from '@floating-ui/react';
import { IconDownload, IconTrash } from '@tabler/icons-react';
import { IconDownload, IconTrashX } from '@tabler/icons-react';
import {
ChangeEvent,
ReactNode,
Expand Down Expand Up @@ -888,7 +888,7 @@ export const FileManagerModal = ({
}
isTriggerClickable
>
<IconTrash size={24} />
<IconTrashX size={24} />
</Tooltip>
</button>
)}
Expand Down
6 changes: 3 additions & 3 deletions apps/chat/src/components/Settings/CustomLogoSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconTrash } from '@tabler/icons-react';
import { IconX } from '@tabler/icons-react';
import { MouseEvent, useState } from 'react';

import { useTranslation } from 'next-i18next';
Expand Down Expand Up @@ -64,9 +64,9 @@ export const CustomLogoSelect = ({
{localLogo && (
<button
onClick={onDeleteLocalLogoHandler}
className="text-secondary hover:text-error"
className="text-secondary hover:text-accent-primary"
>
<IconTrash size={18} />
<IconX size={18} />
</button>
)}
</div>
Expand Down

0 comments on commit 2f4a2a0

Please sign in to comment.