Skip to content

Commit

Permalink
Updated to minor + typecasting in manage versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanishMehmood-bit committed Dec 6, 2023
1 parent 236f7ba commit a0d6c1d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export type ManageVersionsProps = {
};

export enum ManageVersionsTabs {
Versions = "NamedVersion",
Changes = "Changes",
Versions = 0,
Changes = 1,
}

const NAMED_VERSION_TOP = 100;
Expand Down Expand Up @@ -368,20 +368,20 @@ export const ManageVersions = (props: ManageVersionsProps) => {
<Tabs.Wrapper
orientation="horizontal"
type="borderless"
onValueChange={(value) => changeTab(value as ManageVersionsTabs)}
onValueChange={(value) => changeTab(Number(value))}
>
<Tabs.TabList>
<Tabs.Tab
value={ManageVersionsTabs.Versions}
value={ManageVersionsTabs.Versions.toString()}
label={stringsOverrides.namedVersions}
/>
<Tabs.Tab
value={ManageVersionsTabs.Changes}
value={ManageVersionsTabs.Changes.toString()}
label={stringsOverrides.changes}
/>
</Tabs.TabList>

<Tabs.Panel value={ManageVersionsTabs.Versions}>
<Tabs.Panel value={ManageVersionsTabs.Versions.toString()}>
<VersionsTab
status={versionStatus}
onVersionUpdated={refreshVersions}
Expand All @@ -393,7 +393,7 @@ export const ManageVersions = (props: ManageVersionsProps) => {
/>
</Tabs.Panel>

<Tabs.Panel value={ManageVersionsTabs.Changes}>
<Tabs.Panel value={ManageVersionsTabs.Changes.toString()}>
<ChangesTab
changesets={changesets ?? []}
status={changesetStatus}
Expand Down

0 comments on commit a0d6c1d

Please sign in to comment.