File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import type * as CSS from 'csstype' ;
2
3
3
4
export interface FallbackProps extends React . DetailedHTMLProps < React . HTMLAttributes < HTMLDivElement > , HTMLDivElement > { }
4
- const defaultStyle : React . CSSProperties = {
5
+ const defaultStyle : CSS . Properties < string | number > = {
5
6
display : 'flex' ,
6
7
alignItems : 'center' ,
7
8
justifyContent : 'center' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import GitHubCorners from '@uiw/react-github-corners';
5
5
import Github from '@uiw/react-shields/github' ;
6
6
import Npm from '@uiw/react-shields/npm' ;
7
7
import BackToUp from '@uiw/react-back-to-top' ;
8
+ import type * as CSS from 'csstype' ;
8
9
import logo from '../../logo.png' ;
9
10
import Example from './Example' ;
10
11
@@ -112,7 +113,7 @@ const AppHeader = styled.div`
112
113
const hyperlink : {
113
114
href : string ;
114
115
label : string ;
115
- style ?: React . CSSProperties ;
116
+ style ?: CSS . Properties < string | number > ;
116
117
} [ ] = [
117
118
{
118
119
href : 'https://www.npmjs.com/package/@uiw/react-codemirror' ,
You can’t perform that action at this time.
0 commit comments