aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/infobox/index.tsx
diff options
context:
space:
mode:
authorLibravatar Balaji Vijayakumar <kuttibalaji.v6@gmail.com>2022-10-26 18:49:54 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-10-26 19:26:39 +0530
commit47af2abe2c7dfa1b18494092278cbfb0a54f5db5 (patch)
tree6866f6744456bbc7146aa6120cbf5022976a9b1f /src/components/ui/infobox/index.tsx
parentUpgrade 'macos-notification-state' to git SHA from fork '0a168f5b1f94c1fd3c08... (diff)
downloadferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.tar.gz
ferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.tar.zst
ferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.zip
refactor: convert AccountDashboard to typescript
Diffstat (limited to 'src/components/ui/infobox/index.tsx')
-rw-r--r--src/components/ui/infobox/index.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx
index d1d7ef6cd..ad59ea81e 100644
--- a/src/components/ui/infobox/index.tsx
+++ b/src/components/ui/infobox/index.tsx
@@ -7,15 +7,16 @@ import { Theme } from '../../../themes';
7import Icon from '../icon'; 7import Icon from '../icon';
8 8
9interface IProps extends WithStylesProps<typeof styles> { 9interface IProps extends WithStylesProps<typeof styles> {
10 children: ReactNode;
10 icon?: string; 11 icon?: string;
11 type?: string; 12 type?: string;
12 dismissable?: boolean; 13 dismissable?: boolean;
14 ctaLabel?: string;
15
16 className?: string;
13 onDismiss?: () => void; 17 onDismiss?: () => void;
14 onUnmount?: () => void; 18 onUnmount?: () => void;
15 ctaOnClick?: () => void; 19 ctaOnClick?: () => void;
16 ctaLabel?: string;
17 children: ReactNode;
18 className: string;
19} 20}
20 21
21interface IState { 22interface IState {
@@ -114,6 +115,7 @@ class InfoboxComponent extends Component<IProps, IState> {
114 ctaOnClick: () => {}, 115 ctaOnClick: () => {},
115 onDismiss: () => {}, 116 onDismiss: () => {},
116 ctaLabel: '', 117 ctaLabel: '',
118 className: '',
117 }; 119 };
118 120
119 state = { 121 state = {