Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const sections = [
have it as dependency of your project. Additionally, ensure that the <Code>styled-components</Code>{" "}
library is also installed, as it is required by the Halstack components.
</DxcParagraph>
<CodeBlock>{`npm i react react-dom styled-components`}</CodeBlock>
<CodeBlock>{`npm i react react-dom react-data-grid @emotion/react @emotion/styled`}</CodeBlock>
</>
),
},
Expand Down
4 changes: 1 addition & 3 deletions packages/lib/src/paginator/Paginator.accessibility.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import DxcPaginator from "./Paginator";

// Mocking DOMRect for Radix Primitive Popover
(global as any).globalThis = global;
(global as any).DOMRect = {
fromRect: () => ({ top: 0, left: 0, bottom: 0, right: 0, width: 0, height: 0 }),
};

(global as any).ResizeObserver = class ResizeObserver {
observe() {}

Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/paginator/Paginator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ const DxcPaginator = ({
);
};

export default DxcPaginator;
export default DxcPaginator;
2 changes: 1 addition & 1 deletion packages/lib/src/utils/useWidth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ const useWidth = <T extends Element>(ref: React.RefObject<T>) => {
return width;
};

export default useWidth;
export default useWidth;