Skip to content

Commit

Permalink
fix: build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y committed Aug 28, 2020
1 parent a16adf6 commit cdacf43
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/attach/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Attach = React.forwardRef<HTMLInputElement, AttachProps>(
size = 's',
accept,
buttonContent = 'Выберите файл',
buttonProps,
buttonProps = {},
className,
disabled,
dataTestId,
Expand Down Expand Up @@ -114,7 +114,7 @@ export const Attach = React.forwardRef<HTMLInputElement, AttachProps>(
buttonRef.current.focus();
}

if (buttonProps?.onClick) {
if (buttonProps.onClick) {
buttonProps.onClick(event);
}
},
Expand Down
8 changes: 7 additions & 1 deletion packages/attach/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
"baseUrl": ".",
"paths": {
"@alfalab/core-components-button": ["../button/src"],
"@alfalab/core-components-loader": ["../loader/src"],
"@alfalab/core-components-progress-bar": ["../progress-bar/src"],
"@alfalab/core-components-keyboard-focusable": ["../keyboard-focusable/src"]
}
},
"references": [{ "path": "../button" }, { "path": "../progress-bar" }, { "path": "../keyboard-focusable" }]
"references": [
{ "path": "../button" },
{ "path": "../loader" },
{ "path": "../progress-bar" },
{ "path": "../keyboard-focusable" }
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports[`Tabs Snapshots tests should match snapshot 1`] = `
</button>
<button
aria-selected="true"
class="undefined"
class=""
role="tab"
tabindex="0"
type="button"
Expand Down Expand Up @@ -193,7 +193,7 @@ exports[`Tabs Snapshots tests should match snapshot 3`] = `
</button>
<button
aria-selected="true"
class="undefined"
class=""
role="tab"
tabindex="0"
type="button"
Expand Down Expand Up @@ -365,7 +365,7 @@ exports[`Tabs Snapshots tests should match snapshot 5`] = `
</button>
<button
aria-selected="true"
class="undefined"
class=""
role="tab"
tabindex="0"
type="button"
Expand Down
2 changes: 1 addition & 1 deletion packages/tabs/src/typings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactElement } from 'react';
import { ReactElement, ReactNode } from 'react';
import { TagProps } from '@alfalab/core-components-tag';

export type SelectedId = string | number;
Expand Down

0 comments on commit cdacf43

Please sign in to comment.