Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion semcore/data-table/src/components/Head/Column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { handleFocusCell, handleKeydownFocusCell } from '../../enhancers/focusab
import type { ROW_GROUP } from '../DataTable/DataTable';
import type { DataTableData, SortDirection } from '../DataTable/DataTable.types';

const SORTING_ICON: { [key in SortDirection]: React.FC<React.SVGProps<SVGSVGElement>> } = {
const SORTING_ICON: { [key in SortDirection]: typeof SortAsc | typeof SortDesc } = {
desc: SortDesc,
asc: SortAsc,
} as const;
Expand Down
2 changes: 1 addition & 1 deletion semcore/icon/src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ function Icon({
);
}

type IconComponent = Intergalactic.Component<'svg', IconProps>;
export type IconComponent = Intergalactic.Component<'svg', IconProps>;

export default createBaseComponent<IconComponent>(Icon, { isIcon: true });
3 changes: 2 additions & 1 deletion semcore/icon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { IconProps } from './Icon';
import type { IconProps, IconComponent } from './Icon';

export { default } from './Icon';

export type {
IconComponent,
IconProps,
};
4 changes: 2 additions & 2 deletions semcore/icon/transform-svg-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async function transform() {
await fs.mkdir(writeBasePath, { recursive: true });

const dts = `
import type { IconProps } from '../..${(type === 'pay' || type === 'color') ? '/../' : '/'}types/index.mjs';
declare const Icon: React.FC<React.SVGProps<SVGSVGElement> & IconProps>;
import type { IconComponent } from '../..${(type === 'pay' || type === 'color') ? '/../' : '/'}types';
declare const Icon: IconComponent;
export default Icon;
`;

Expand Down
2 changes: 1 addition & 1 deletion semcore/modal/src/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Close(
)
: (
<Button.Addon ml='7px' mr='7px'>
<CloseIcon title={getI18nText('close')} />
<CloseIcon />
</Button.Addon>
)}
</SClose>,
Expand Down
Loading