From a0d6c1dac2df62d4c941933a0348971ab6bd5475 Mon Sep 17 00:00:00 2001 From: DanishMehmood-bit <64415995+DanishMehmood-bit@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:59:20 +0500 Subject: [PATCH] Updated to minor + typecasting in manage versions --- .../DanishM-itwinui3_x_2023-11-20-07-14.json | 2 +- .../DanishM-itwinui3_x_2023-11-20-07-14.json | 2 +- .../DanishM-itwinui3_x_2023-11-20-07-14.json | 2 +- .../DanishM-itwinui3_x_2023-11-20-07-14.json | 2 +- .../DanishM-itwinui3_x_2023-11-20-07-14.json | 2 +- .../components/ManageVersions/ManageVersions.tsx | 14 +++++++------- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/common/changes/@itwin/create-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json b/common/changes/@itwin/create-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json index 75687cf3..f21f16b6 100644 --- a/common/changes/@itwin/create-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json +++ b/common/changes/@itwin/create-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json @@ -3,7 +3,7 @@ { "packageName": "@itwin/create-imodel-react", "comment": "Updated itwinui-react to 3.x", - "type": "major" + "type": "minor" } ], "packageName": "@itwin/create-imodel-react" diff --git a/common/changes/@itwin/delete-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json b/common/changes/@itwin/delete-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json index 5686a5b7..a5255d97 100644 --- a/common/changes/@itwin/delete-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json +++ b/common/changes/@itwin/delete-imodel-react/DanishM-itwinui3_x_2023-11-20-07-14.json @@ -3,7 +3,7 @@ { "packageName": "@itwin/delete-imodel-react", "comment": "Updated itwinui-react to 3.x", - "type": "major" + "type": "minor" } ], "packageName": "@itwin/delete-imodel-react" diff --git a/common/changes/@itwin/delete-itwin-react/DanishM-itwinui3_x_2023-11-20-07-14.json b/common/changes/@itwin/delete-itwin-react/DanishM-itwinui3_x_2023-11-20-07-14.json index 9ba62e71..f30ae3c3 100644 --- a/common/changes/@itwin/delete-itwin-react/DanishM-itwinui3_x_2023-11-20-07-14.json +++ b/common/changes/@itwin/delete-itwin-react/DanishM-itwinui3_x_2023-11-20-07-14.json @@ -3,7 +3,7 @@ { "packageName": "@itwin/delete-itwin-react", "comment": "Updated itwinui-react to 3.x", - "type": "major" + "type": "minor" } ], "packageName": "@itwin/delete-itwin-react" diff --git a/common/changes/@itwin/imodel-browser-react/DanishM-itwinui3_x_2023-11-20-07-14.json b/common/changes/@itwin/imodel-browser-react/DanishM-itwinui3_x_2023-11-20-07-14.json index dbe10919..1d1a09c1 100644 --- a/common/changes/@itwin/imodel-browser-react/DanishM-itwinui3_x_2023-11-20-07-14.json +++ b/common/changes/@itwin/imodel-browser-react/DanishM-itwinui3_x_2023-11-20-07-14.json @@ -3,7 +3,7 @@ { "packageName": "@itwin/imodel-browser-react", "comment": "Updated itwinui-react to 3.x", - "type": "major" + "type": "minor" } ], "packageName": "@itwin/imodel-browser-react" diff --git a/common/changes/@itwin/manage-versions-react/DanishM-itwinui3_x_2023-11-20-07-14.json b/common/changes/@itwin/manage-versions-react/DanishM-itwinui3_x_2023-11-20-07-14.json index 743bee31..d31c0f80 100644 --- a/common/changes/@itwin/manage-versions-react/DanishM-itwinui3_x_2023-11-20-07-14.json +++ b/common/changes/@itwin/manage-versions-react/DanishM-itwinui3_x_2023-11-20-07-14.json @@ -3,7 +3,7 @@ { "packageName": "@itwin/manage-versions-react", "comment": "Updated itwinui-react to 3.x", - "type": "major" + "type": "minor" } ], "packageName": "@itwin/manage-versions-react" diff --git a/packages/modules/manage-versions/src/components/ManageVersions/ManageVersions.tsx b/packages/modules/manage-versions/src/components/ManageVersions/ManageVersions.tsx index aa33c698..0d2b5678 100644 --- a/packages/modules/manage-versions/src/components/ManageVersions/ManageVersions.tsx +++ b/packages/modules/manage-versions/src/components/ManageVersions/ManageVersions.tsx @@ -81,8 +81,8 @@ export type ManageVersionsProps = { }; export enum ManageVersionsTabs { - Versions = "NamedVersion", - Changes = "Changes", + Versions = 0, + Changes = 1, } const NAMED_VERSION_TOP = 100; @@ -368,20 +368,20 @@ export const ManageVersions = (props: ManageVersionsProps) => { changeTab(value as ManageVersionsTabs)} + onValueChange={(value) => changeTab(Number(value))} > - + { /> - +