Skip to content

Commit 7cbe715

Browse files
authored
Merge pull request #112 from unfoldingWord/Katalon-Id-closeButton-1010
Katalon:ID required for the close button
2 parents cb6a385 + 5d9c269 commit 7cbe715

File tree

3 files changed

+11
-26
lines changed

3 files changed

+11
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitea-react-toolkit",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"license": "MIT",
55
"description": "A Gitea API React Toolkit Component Library",
66
"homepage": "https://gitea-react-toolkit.netlify.com/",

src/components/application-bar/RepositoryMenu.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import {
99
Paper,
1010
Chip,
1111
} from '@material-ui/core';
12+
// import CancelIcon from '@mui/icons-material/Cancel';
1213
import { FolderShared } from '@material-ui/icons';
14+
import CancelIcon from '@material-ui/icons/Cancel';
1315

1416
import { useStyles } from './useStyles';
1517
import { RepositoryContext, FileContext } from '..';
@@ -33,7 +35,7 @@ function RepositoryMenu() {
3335
} = repository || {};
3436

3537
const _onDelete = useCallback(() => {
36-
if (file && actions?.close) {
38+
if (actions?.close) {
3739
if (fileActions?.onConfirmClose) {
3840
if (fileActions.onConfirmClose())
3941
{
@@ -58,10 +60,12 @@ function RepositoryMenu() {
5860

5961
button = (
6062
<Chip
63+
id={`chip_${name}`}
6164
data-test="repository-item-icon"
6265
aria-label="repository-item-icon"
6366
avatar={avatarComponent}
6467
label={<span data-test="repository-item-chip">{name}</span>}
68+
deleteIcon={<CancelIcon id={`deleteIcon_${name}`} />}
6569
onDelete={_onDelete}
6670
color="primary"
6771
/>

yarn.lock

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6716,15 +6716,6 @@ eslint-plugin-react@^7.19.0:
67166716
resolve "^2.0.0-next.3"
67176717
string.prototype.matchall "^4.0.4"
67186718

6719-
eslint-plugin-test-selectors@1.3.2:
6720-
version "1.3.2"
6721-
resolved "https://registry.yarnpkg.com/eslint-plugin-test-selectors/-/eslint-plugin-test-selectors-1.3.2.tgz#4fb65afc6b0397ab1c4cafb823af99e19e167ad6"
6722-
integrity sha512-6f4bDE3b/YcP9SIAqxgd1+C1/oMF/qSjFXTF5H8Gq/H0iVekd6YrlPY3zX7WGAnVjMNEdOp9gK1OolfvIepzbg==
6723-
dependencies:
6724-
jsx-ast-utils "^3.2.0"
6725-
nanoid "^3.1.18"
6726-
requireindex "^1.2.0"
6727-
67286719
eslint-rule-composer@^0.3.0:
67296720
version "0.3.0"
67306721
resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
@@ -10249,7 +10240,7 @@ jsx-ast-utils@^2.2.1, jsx-ast-utils@^2.2.3:
1024910240
array-includes "^3.1.1"
1025010241
object.assign "^4.1.0"
1025110242

10252-
"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.0:
10243+
"jsx-ast-utils@^2.4.1 || ^3.0.0":
1025310244
version "3.2.0"
1025410245
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz#41108d2cec408c3453c1bbe8a4aae9e1e2bd8f82"
1025510246
integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==
@@ -11107,10 +11098,10 @@ markdown-to-jsx@^6.10.3:
1110711098
prop-types "^15.6.2"
1110811099
unquote "^1.1.0"
1110911100

11110-
markdown-translatable@1.3.1:
11111-
version "1.3.1"
11112-
resolved "https://registry.yarnpkg.com/markdown-translatable/-/markdown-translatable-1.3.1.tgz#29393f8650be38885c7991f2e2e661bbe9d000ae"
11113-
integrity sha512-oZieaVOCjxZISyGDvcpb3XsJsnPvKd4xCULFQawQ/L395EwGHFERG6gCH65b3w3HjkLEWhdPknWf1BLK6Mu6Tg==
11101+
markdown-translatable@1.3.1-rc.1:
11102+
version "1.3.1-rc.1"
11103+
resolved "https://registry.yarnpkg.com/markdown-translatable/-/markdown-translatable-1.3.1-rc.1.tgz#498a264d544f87511465ae06dd454565be1daabb"
11104+
integrity sha512-Cn6GFYHZTAQOBy+XCtweOzDVMmshTjIgd2z9oex9DlNWVqlHO54yEvXduFg4YOl4qgTxkdeH+i3Z3VA+01d71w==
1111411105
dependencies:
1111511106
deep-freeze "^0.0.1"
1111611107
md5 "^2.2.1"
@@ -11629,11 +11620,6 @@ nan@^2.12.1:
1162911620
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
1163011621
integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==
1163111622

11632-
nanoid@^3.1.18:
11633-
version "3.1.25"
11634-
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152"
11635-
integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==
11636-
1163711623
nanomatch@^1.2.9:
1163811624
version "1.2.13"
1163911625
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -14883,11 +14869,6 @@ require-main-filename@^2.0.0:
1488314869
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
1488414870
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
1488514871

14886-
requireindex@^1.2.0:
14887-
version "1.2.0"
14888-
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.2.0.tgz#3463cdb22ee151902635aa6c9535d4de9c2ef1ef"
14889-
integrity sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==
14890-
1489114872
requires-port@^1.0.0:
1489214873
version "1.0.0"
1489314874
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"

0 commit comments

Comments
 (0)