Skip to content

Commit

Permalink
Fixed build problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Mil4n0r committed Dec 16, 2024
1 parent 8fbe712 commit 1f6201c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { DxcLink, DxcInset } from "@dxc-technology/halstack-react";
import Link from "next/link";
import React from "react";

const code = `() => {
const CustomLink = React.forwardRef(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { DxcNavTabs, DxcInset } from "@dxc-technology/halstack-react";
import Link from "next/link";
import React from "react";

const code = `() => {
const CustomNavTab = React.forwardRef(({ href, children, ...other }, ref) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/src/tabs/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const DxcTab = forwardRef(
aria-selected={activeLabel === label}
hasLabelAndIcon={hasLabelAndIcon}
iconPosition={iconPosition}
ref={(anchorRef) => {
ref={(anchorRef: HTMLButtonElement) => {
tabRef.current = anchorRef;

if (ref) {
Expand Down Expand Up @@ -224,7 +224,7 @@ const MainLabelContainer = styled.div<{
const Label = styled.span<{
disabled: TabProps["disabled"];
label: TabProps["label"];
activeLabel: string;
activeLabel?: string;
}>`
display: inline;
color: ${(props) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/tabs/TabLegacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Tab = forwardRef(
<DxcBadge
mode="notification"
size="small"
label={typeof tab.notificationNumber === "number" && tab.notificationNumber}
label={typeof tab.notificationNumber === "number" ? tab.notificationNumber : undefined}
/>
</BadgeContainer>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/toast/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode } from "react";
import { ReactNode, SVGProps } from "react";

type SVG = ReactNode & SVGProps<SVGSVGElement>;
type Action = {
Expand Down

0 comments on commit 1f6201c

Please sign in to comment.