Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit c400e6f

Browse files
relicon sorted
1 parent 6717f24 commit c400e6f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { createElement } from 'react';
1+
import { SvgIconProps } from '@material-ui/core/SvgIcon';
2+
import { createElement, ReactElement } from 'react';
3+
import { rels } from '../stream-store';
24
import {
3-
Publish,
4-
Settings,
5+
ChevronLeft,
6+
ChevronRight,
57
DeleteForever,
68
FirstPage,
9+
Help,
710
LastPage,
8-
ChevronLeft,
9-
ChevronRight,
10-
RssFeed,
11+
List,
12+
Publish,
1113
Refresh,
14+
RssFeed,
1215
Search,
16+
Settings,
1317
SqlStreamStore,
14-
List,
15-
Help,
1618
} from './Icons';
17-
import { rels } from '../stream-store';
1819

1920
const fontIconByRel = {
2021
[rels.first]: FirstPage,
@@ -32,7 +33,11 @@ const fontIconByRel = {
3233
[rels.curies]: Help,
3334
};
3435

35-
const RelIcon = ({ rel, ...props }) =>
36+
interface RelIconProps extends SvgIconProps {
37+
rel: string;
38+
}
39+
40+
const RelIcon = ({ rel, ...props }: RelIconProps): ReactElement<SvgIconProps> =>
3641
createElement(fontIconByRel[rel] || SqlStreamStore, props);
3742

3843
export default RelIcon;

0 commit comments

Comments
 (0)