From 1cb89c9a5f6bf6c8cc3cfb9e14ec9e3a69493813 Mon Sep 17 00:00:00 2001 From: Muhammadali <mukhammadali.ubaydullayev.05@inbox.ru> Date: Mon, 21 Aug 2023 16:24:32 +0500 Subject: [PATCH] change root file change addd name to boxdialerwindjet --- src/components/WidjetButton/index.jsx | 4 +++- src/components/WidjetButton/style.js | 10 ++++++++++ src/index.html | 2 +- src/index.js | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/WidjetButton/index.jsx b/src/components/WidjetButton/index.jsx index fd7aae5..cdccc5a 100644 --- a/src/components/WidjetButton/index.jsx +++ b/src/components/WidjetButton/index.jsx @@ -168,7 +168,9 @@ const WidjetButton = ({ data, onSetDnd }) => { <DialPadIcon /> </div> <div className='bottom'> - <WidjetBlock.StatusLine status={dynamicValue} /> + <WidjetBlock.StatusLine status={dynamicValue}> + <p className='verison'>v 0.0.1</p> + </WidjetBlock.StatusLine> </div> </WidjetBlock.AccauntInfo> <ModalPhoneDropDowm diff --git a/src/components/WidjetButton/style.js b/src/components/WidjetButton/style.js index 238f186..78e23ee 100644 --- a/src/components/WidjetButton/style.js +++ b/src/components/WidjetButton/style.js @@ -69,6 +69,16 @@ WidjetBlock.StatusLine = styled.div` : status === 'connected' ? '#a0c13d' : '#ccc'}; + display: flex; + align-items: center; + justify-content: flex-end; + padding: 0 10px 0 0; + color: green; + .verison { + font-size: 10px; + font-weight: bold; + float: right; + } `; const DialPadIcon = styled(CallIcon)` font-size: 26px; diff --git a/src/index.html b/src/index.html index ba4b1f6..e1117a1 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,6 @@ </head> <body> <noscript>You need to enable JavaScript to run this app.</noscript> - <div id="boxdialer"></div> + <div id="boxdialerwidjet"></div> </body> </html> diff --git a/src/index.js b/src/index.js index 68a9bbe..61a5435 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,7 @@ import './index.css'; window.BoxDialer = new BoxDialer(); -const container = document.getElementById('boxdialer'); +const container = document.getElementById('boxdialerwidjet'); const root = createRoot(container); root.render( -- 2.21.0