@asgard-js/react 0.0.43-canary.5 → 0.0.43-canary.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgard-js/react",
3
- "version": "0.0.43-canary.5",
3
+ "version": "0.0.43-canary.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,8 +17,6 @@
17
17
  .icon {
18
18
  width: 24px;
19
19
  height: 24px;
20
- border-radius: 50%;
21
- object-fit: cover;
22
20
  }
23
21
 
24
22
  .title {
@@ -1,8 +1,8 @@
1
1
  import { useState, FormEvent, ChangeEvent } from 'react';
2
2
  import clsx from 'clsx';
3
- import ProfileSvg from '../../../icons/profile.svg?react';
4
3
  import { useAsgardThemeContext } from '../../../context/asgard-theme-context';
5
4
  import { useAsgardContext } from '../../../context/asgard-service-context';
5
+ import { ProfileIcon } from '../profile-icon';
6
6
  import styles from './api-key-input.module.scss';
7
7
 
8
8
  export interface ApiKeyInputProps {
@@ -53,15 +53,7 @@ export function ApiKeyInput({
53
53
  }}
54
54
  >
55
55
  <div className={styles.header}>
56
- {avatar ? (
57
- <img
58
- src={avatar}
59
- alt="Bot Avatar"
60
- className={styles.icon}
61
- />
62
- ) : (
63
- <ProfileSvg className={styles.icon} />
64
- )}
56
+ <ProfileIcon avatar={avatar} />
65
57
  <h2 className={styles.title}>{title}</h2>
66
58
  </div>
67
59