Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/demo/src/components/ConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const ConfirmationModal: React.FC<
const dmy = ()=>{
alert('ffff');
}
const dd =

@coderabbitai coderabbitai Bot Dec 29, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Incomplete variable assignment dd.
Currently, dd is declared without an assigned value. Remove it if not used or complete the assignment if needed.

-  const dd =
+  // Remove or initialize `dd`:
+  // const dd = someValue;

Committable suggestion skipped: line range outside the PR's diff.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liatb-rh Here's one straightforward way to fix the incomplete variable assignment by removing dd (if it isn't needed). For instance:

const dmy = () => {
  alert('ffff');
};

// Remove or replace dd if you don't need it.
// const dd = someValue; // If you do need it, initialize it properly.

return (
  <Modal /* ... */>
    {/* ... */}
  </Modal>
);


return (
<Modal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";
import { useWindowSize } from "react-use";

const DEFAULT_HEIGHT = 635;
let DEFAULT_HEIGHT = 635;

function getMainPageSectionVerticalPadding(pageMainSection: Element): number {
const { paddingTop, paddingBottom } = getComputedStyle(pageMainSection);
Expand All @@ -25,6 +25,11 @@ export function useComputedHeightFromPageHeader(): number {
getMainPageSectionVerticalPadding(pageMainSection);
const { height: basePageHeaderHeight, unknown } =
basePageHeader.getBoundingClientRect();





setHeight(
windowInnerHeight -
basePageHeaderHeight -
Expand Down
9 changes: 9 additions & 0 deletions apps/demo/src/ocm/VMwareMigrationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export const VMwareMigrationCard: React.FC = () => {
</CardBody>
<CardBody>
<TextContent>





<Text>
Start your migration journey to OpenShift Virtualization. We will
create a migration assessment report and help you create a migration
Expand All @@ -52,6 +57,10 @@ export const VMwareMigrationCard: React.FC = () => {
<Flex>
<FlexItem>
<Link to="/migrate/wizard">




<Button variant="secondary">Start your migration journey</Button>
</Link>
</FlexItem>
Expand Down