Skip to content

Commit

Permalink
fix(SkipNavigation): change label types to string
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed May 31, 2023
1 parent dc18bed commit 4ad843e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/orbit-components/src/SkipNavigation/index.tsx
Expand Up @@ -49,7 +49,7 @@ const SkipNavigation = ({
}: Props) => {
const [links, setLinks] = React.useState<HTMLAnchorElement[]>([]);
const [mappedLinks, setMappedLinks] = React.useState<MappedOptions[]>([]);
const [innerPages, setPages] = React.useState<{ value: number; label?: React.ReactNode }[]>([]);
const [innerPages, setPages] = React.useState<{ value: number; label?: string }[]>([]);
const [show, setShow] = React.useState(false);

const handleLinksClick = (ev: React.SyntheticEvent<HTMLSelectElement>) => {
Expand Down
8 changes: 4 additions & 4 deletions packages/orbit-components/src/SkipNavigation/types.d.ts
Expand Up @@ -12,14 +12,14 @@ interface Action {
export interface Props {
readonly actions?: Action[];
readonly feedbackUrl?: string;
readonly firstSectionLabel?: React.ReactNode;
readonly firstActionLabel?: React.ReactNode;
readonly feedbackLabel?: React.ReactNode;
readonly firstSectionLabel?: string;
readonly firstActionLabel?: string;
readonly feedbackLabel?: string;
}

export interface MappedOptions {
readonly key?: string;
readonly value: string | number;
readonly label?: React.ReactNode;
readonly label?: string;
readonly disabled?: boolean;
}

0 comments on commit 4ad843e

Please sign in to comment.