-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ws-event): added event for callNethLink action (#62)
* feat: Added missing phone-island event for callNethLink ws event * fix: Wrong margin for alert message * fix: missing display name animation during call * fix: wrong transfer message on operator call hangup * feat: enhance phone-island event name for physical actions
- Loading branch information
Showing
9 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* Copyright (C) 2024 Nethesis S.r.l. */ | ||
/* SPDX-License-Identifier: AGPL-3.0-or-later */ | ||
|
||
import React, { useState, useEffect } from 'react' | ||
|
||
interface TextScrollProps { | ||
text: string | ||
} | ||
|
||
const TextScroll: React.FC<TextScrollProps> = ({ text }) => { | ||
const [scrollText, setScrollText] = useState(false) | ||
|
||
useEffect(() => { | ||
if (text.length > 15) { | ||
setScrollText(true) | ||
} else { | ||
setScrollText(false) | ||
} | ||
}, [text]) | ||
|
||
return ( | ||
<> | ||
{scrollText ? ( | ||
<div className='pi-text-container pi-mr-4'> | ||
<div className='pi-text-wrapper pi-flex'> | ||
<span>{text}</span> | ||
<span className='pi-ml-4'>{text}</span> | ||
</div> | ||
</div> | ||
) : ( | ||
<div className='pi-mr-4'> | ||
<span>{text}</span> | ||
</div> | ||
)} | ||
</> | ||
) | ||
} | ||
|
||
export default TextScroll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters