|
1 | 1 | import { JupyterFrontEnd } from '@jupyterlab/application'; |
2 | 2 | import { IRenderMimeRegistry } from '@jupyterlab/rendermime'; |
3 | | -import { defaultIconRegistry } from '@jupyterlab/ui-components'; |
| 3 | +import { DefaultIconReact } from '@jupyterlab/ui-components'; |
4 | 4 | import * as React from 'react'; |
5 | 5 | import { classes } from 'typestyle/'; |
6 | 6 | import { fileIconStyle } from '../style/FileItemStyle'; |
@@ -139,30 +139,30 @@ export class SinglePastCommitInfo extends React.Component< |
139 | 139 | <div className={commitStyle}> |
140 | 140 | <div className={commitOverviewNumbers}> |
141 | 141 | <span> |
142 | | - {defaultIconRegistry.iconReact({ |
143 | | - name: 'file', |
144 | | - className: classes(iconStyle), |
145 | | - tag: 'span', |
146 | | - title: '# Files Changed' |
147 | | - })} |
| 142 | + <DefaultIconReact |
| 143 | + name="file" |
| 144 | + className={iconStyle} |
| 145 | + tag="span" |
| 146 | + title="# Files Changed" |
| 147 | + /> |
148 | 148 | {this.state.filesChanged} |
149 | 149 | </span> |
150 | 150 | <span> |
151 | | - {defaultIconRegistry.iconReact({ |
152 | | - name: 'git-insertionsMade', |
153 | | - className: classes(iconStyle), |
154 | | - tag: 'span', |
155 | | - title: '# Insertions' |
156 | | - })} |
| 151 | + <DefaultIconReact |
| 152 | + name="git-insertionsMade" |
| 153 | + className={iconStyle} |
| 154 | + tag="span" |
| 155 | + title="# Insertions" |
| 156 | + /> |
157 | 157 | {this.state.insertionCount} |
158 | 158 | </span> |
159 | 159 | <span> |
160 | | - {defaultIconRegistry.iconReact({ |
161 | | - name: 'git-deletionsMade', |
162 | | - className: classes(iconStyle), |
163 | | - tag: 'span', |
164 | | - title: '# Deletions' |
165 | | - })} |
| 160 | + <DefaultIconReact |
| 161 | + name="git-deletionsMade" |
| 162 | + className={iconStyle} |
| 163 | + tag="span" |
| 164 | + title="# Deletions" |
| 165 | + /> |
166 | 166 | {this.state.deletionCount} |
167 | 167 | </span> |
168 | 168 | </div> |
|
0 commit comments