Skip to content

Commit

Permalink
added svg from props
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoloza committed Aug 28, 2024
1 parent d3f5ad5 commit 8bd2e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/socket-ui/byld-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ const connectedToSymbols = (clients, element, state) => {

const t = setTimeout(() => {
delete state.notifications.connected
element.notifications.content.connected
.setProps({ animation: 'fadeOutDown' })
if (element.notifications.content.connected) {
element.notifications.content.connected
.setProps({ animation: 'fadeOutDown' })
}
state.update({ connected: true })
clearTimeout(t)
}, 3000)
Expand Down
1 change: 1 addition & 0 deletions packages/uikit/Atoms/Svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const Svg = {
const SVG = designSystem && designSystem.SVG
const useSvgSprite = props.spriteId || (context.designSystem && context.designSystem.useSvgSprite)

if (props.html) return props.html
if (!useSvgSprite && props.src) return props.src

const useSVGSymbol = icon => `<use xlink:href="#${icon}" />`
Expand Down

0 comments on commit 8bd2e04

Please sign in to comment.