aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/StatusBarTargetUrl.tsx
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-20 17:35:21 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-20 17:35:21 +0530
commit86f9ab693dcad951271f727046214b03d91ebd69 (patch)
tree3d32ff4814b5484495b811c5fe0ebea4805f4e55 /src/components/ui/StatusBarTargetUrl.tsx
parent6.2.1-nightly.47 [skip ci] (diff)
downloadferdium-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.tsx30
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 @@
1import { Component } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames';
4import Appear from './effects/Appear';
5
6interface 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
13class 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
30export default StatusBarTargetUrl;