-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
resolves #3033 (FR-369) <!-- replace NNN, MMM with the GitHub issue number and the corresponding Jira issue number. --> Add an Icon component for Neo Webui. Componentise the icons within the Pygma design file. **How to test:** - Verify that colours, font size, etc. are applied correctly with inline css. - Check for missing icons or duplicates. <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> **Checklist:** (if applicable) - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
- Loading branch information
1 parent
d54d1c4
commit 0be79da
Showing
46 changed files
with
398 additions
and
19 deletions.
There are no files selected for viewing
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 './App.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface AppIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const AppIcon: React.FC<AppIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default AppIcon; |
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 './CalculateResource.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface CalculateResourceIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const CalculateResourceIcon: React.FC<CalculateResourceIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default CalculateResourceIcon; |
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 './ContainerCommit.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface ContainerCommitIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const ContainerCommitIcon: React.FC<ContainerCommitIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default ContainerCommitIcon; |
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 './Dashboard.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface DashboardIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const DashboardIcon: React.FC<DashboardIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default DashboardIcon; |
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 './Endpoint.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface EndpointProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const Endpoint: React.FC<EndpointProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default Endpoint; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 './List.svg'; | ||
import Icon from '@ant-design/icons'; | ||
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
interface ListIconProps | ||
extends Omit<CustomIconComponentProps, 'width' | 'height' | 'fill'> {} | ||
|
||
const ListIcon: React.FC<ListIconProps> = (props) => { | ||
return <Icon component={logo} {...props} />; | ||
}; | ||
|
||
export default ListIcon; |
Oops, something went wrong.