Skip to content

Commit

Permalink
refactor(component): map markdown rendering model name within icon lo…
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Jan 8, 2025
1 parent 77ba2b7 commit 7db3a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/IconLoader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const icon_components = {
ansible: AnsibleIcon,
assistance: AssistanceIcon,
cluster: ClusterIcon,
config_group: ConfigManagementIcon,
config_management: ConfigManagementIcon,
device_status_bad: InventoryStatusBadIcon,
device_status_ok: InventoryStatusOkIcon,
Expand All @@ -78,6 +79,7 @@ const icon_components = {
help: HelpIcon,
history: HistoryIcon,
information: InformationIcon,
kb: InformationIcon,
itam: ItamIcon,
itim: ITIMIcon,
link: LinkIcon,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/markdown_plugins/ModelLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function model_link (state) {

icon_t.content = renderToStaticMarkup(
<IconLoader
name={String( item_link.groups.model_type ).toLowerCase().replace('kb', 'information')}
name={String( item_link.groups.model_type ).toLowerCase()}
fill="#777"
/>
)
Expand Down

0 comments on commit 7db3a12

Please sign in to comment.