Skip to content

Commit 8ac7b2e

Browse files
committed
export types from converted components
1 parent 916819d commit 8ac7b2e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

client/common/ButtonOrLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Link } from 'react-router-dom';
55
/**
66
* Accepts all the props of an HTML <a> or <button> tag.
77
*/
8-
type ButtonOrLinkProps = {
8+
export type ButtonOrLinkProps = {
99
/**
1010
* If providing an href, will render as a link instead of a button.
1111
* Can be internal or external.
@@ -22,7 +22,7 @@ type ButtonOrLinkProps = {
2222
onClick?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
2323
};
2424

25-
type Ref = HTMLAnchorElement | HTMLButtonElement
25+
export type Ref = HTMLAnchorElement | HTMLButtonElement
2626

2727
/**
2828
* Helper for switching between <button>, <a>, and <Link>

client/common/IconButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const ButtonWrapper = styled(Button)`
1111
}
1212
`;
1313

14-
type IconProps = {
14+
export type IconProps = {
1515
'aria-label'?: string
1616
};
1717

18-
type IconButtonProps = Omit<
18+
export type IconButtonProps = Omit<
1919
React.ComponentProps<typeof Button>,
2020
'iconBefore' | 'iconOnly' | 'display' | 'focusable'
2121
> & {

client/common/RouterTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactNode } from 'react';
22
import { NavLink } from 'react-router-dom';
33

4-
type TabProps = {
4+
export type TabProps = {
55
children: ReactNode,
66
to: string
77
};

0 commit comments

Comments
 (0)