Skip to content

Commit

Permalink
Merge pull request #1259 from thunderstore-io/11-04-remove_unused_lin…
Browse files Browse the repository at this point in the history
…k_props

Remove unused link props
  • Loading branch information
Oksamies authored Nov 4, 2024
2 parents d3a0e5c + 5935897 commit d7d644f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions apps/cyberstorm-remix/cyberstorm/utils/LinkLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ interface LinkProps
className?: string;
queryParams?: string;
url: string;
"data-color"?: string;
"data-size"?: string;
"data-variant"?: string;
customRef?: React.ForwardedRef<HTMLAnchorElement>;
version?: string;
}
Expand Down Expand Up @@ -45,9 +42,6 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
{...fProps}
className={className}
ref={forwardedRef}
data-color={props["data-color"]}
data-size={props["data-size"]}
data-variant={props["data-variant"]}
// TODO: Remove this prop when community page is deployed
// OR there is someway to pass this prop in the needed places. e.g. CardCommunity
reloadDocument
Expand Down
6 changes: 0 additions & 6 deletions apps/cyberstorm-storybook/LinkLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ interface LinkProps
className?: string;
queryParams?: string;
url: string;
"data-color"?: string;
"data-size"?: string;
"data-variant"?: string;
customRef?: React.ForwardedRef<HTMLAnchorElement>;
version?: string;
}
Expand Down Expand Up @@ -54,9 +51,6 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
{...fProps}
className={className}
ref={forwardedRef}
data-color={props["data-color"]}
data-size={props["data-size"]}
data-variant={props["data-variant"]}
>
{children}
</a>
Expand Down
6 changes: 0 additions & 6 deletions packages/cyberstorm/src/components/Links/Links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ interface CyberstormLinkProps
typeWorkaroundProps {
linkId: CyberstormLinkIds;
className?: string;
"data-color"?: string;
"data-size"?: string;
"data-variant"?: string;
forwardedProps?: object;
}

Expand Down Expand Up @@ -92,9 +89,6 @@ export const CyberstormLink = React.forwardRef<
team={team}
user={user}
customRef={forwardedRef}
data-color={props["data-color"]}
data-size={props["data-size"]}
data-variant={props["data-variant"]}
>
{children}
</Link>
Expand Down

0 comments on commit d7d644f

Please sign in to comment.