diff options
author | 2022-11-20 17:35:21 +0530 | |
---|---|---|
committer | 2022-11-20 17:35:21 +0530 | |
commit | 86f9ab693dcad951271f727046214b03d91ebd69 (patch) | |
tree | 3d32ff4814b5484495b811c5fe0ebea4805f4e55 /src/components/ui/StatusBarTargetUrl.tsx | |
parent | 6.2.1-nightly.47 [skip ci] (diff) | |
download | ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.gz ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.zst ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.zip |
Transform Todo feature, ServiceBarTargetUrl, ServiceIcon, TeamDashboard, Slider, Loader & WorkspaceSwitchningIndicator into ts (#782)
Diffstat (limited to 'src/components/ui/StatusBarTargetUrl.tsx')
-rw-r--r-- | src/components/ui/StatusBarTargetUrl.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/ui/StatusBarTargetUrl.tsx b/src/components/ui/StatusBarTargetUrl.tsx new file mode 100644 index 000000000..7b053f410 --- /dev/null +++ b/src/components/ui/StatusBarTargetUrl.tsx | |||
@@ -0,0 +1,30 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | ||
3 | import classnames from 'classnames'; | ||
4 | import Appear from './effects/Appear'; | ||
5 | |||
6 | interface IProps { | ||
7 | className?: string; | ||
8 | text?: string; | ||
9 | } | ||
10 | |||
11 | // TODO - [TS DEBT] Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
12 | @observer | ||
13 | class StatusBarTargetUrl extends Component<IProps> { | ||
14 | render() { | ||
15 | const { className = '', text = '' } = this.props; | ||
16 | |||
17 | return ( | ||
18 | <Appear | ||
19 | className={classnames({ | ||
20 | 'status-bar-target-url': true, | ||
21 | [`${className}`]: true, | ||
22 | })} | ||
23 | > | ||
24 | <div className="status-bar-target-url__content">{text}</div> | ||
25 | </Appear> | ||
26 | ); | ||
27 | } | ||
28 | } | ||
29 | |||
30 | export default StatusBarTargetUrl; | ||