-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace svg as customIcon component
- Loading branch information
Showing
16 changed files
with
105 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ReactComponent as logo } from './BatchSession.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface BatchSessionIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const BatchSessionIcon: React.FC<BatchSessionIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default BatchSessionIcon; |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ReactComponent as logo } from './ExampleStart.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface ExampleStartIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const ExampleStartIcon: React.FC<ExampleStartIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default ExampleStartIcon; |
2 changes: 1 addition & 1 deletion
2
resources/icons/interactiveSession.svg → ...c/components/icons/InteractiveSession.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ReactComponent as logo } from './InteractiveSession.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface InteractiveSessionIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const InteractiveSessionIcon: React.FC<InteractiveSessionIconProps> = ( | ||
props, | ||
) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default InteractiveSessionIcon; |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ReactComponent as logo } from './ModelService.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface ModelServiceIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const ModelServiceIcon: React.FC<ModelServiceIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default ModelServiceIcon; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ReactComponent as logo } from './URLStart.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface URLStartIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const URLStartIcon: React.FC<URLStartIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default URLStartIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters