diff options
author | 2022-10-26 18:49:54 +0530 | |
---|---|---|
committer | 2022-10-26 19:26:39 +0530 | |
commit | 47af2abe2c7dfa1b18494092278cbfb0a54f5db5 (patch) | |
tree | 6866f6744456bbc7146aa6120cbf5022976a9b1f /src/components/ui/infobox/index.tsx | |
parent | Upgrade 'macos-notification-state' to git SHA from fork '0a168f5b1f94c1fd3c08... (diff) | |
download | ferdium-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.tsx | 8 |
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'; | |||
7 | import Icon from '../icon'; | 7 | import Icon from '../icon'; |
8 | 8 | ||
9 | interface IProps extends WithStylesProps<typeof styles> { | 9 | interface 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 | ||
21 | interface IState { | 22 | interface 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 = { |