Adding an icon component. Fixes #172
This commit is contained in:
parent
4b43cdf143
commit
2a85b93c58
32 changed files with 232 additions and 409 deletions
|
@ -3,6 +3,7 @@ import { pictrsUri } from '../env';
|
|||
import { UserService } from '../services';
|
||||
import { toast, randomStr } from '../utils';
|
||||
import { i18n } from '../i18next';
|
||||
import { Icon } from './icon';
|
||||
|
||||
interface ImageUploadFormProps {
|
||||
uploadTitle: string;
|
||||
|
@ -53,9 +54,7 @@ export class ImageUploadForm extends Component<
|
|||
onClick={linkEvent(this, this.handleRemoveImage)}
|
||||
aria-label={i18n.t('remove')}
|
||||
>
|
||||
<svg class="icon mini-overlay">
|
||||
<use xlinkHref="#icon-x"></use>
|
||||
</svg>
|
||||
<Icon icon="x" classes="mini-overlay" />
|
||||
</a>
|
||||
</span>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue