Skip to content

Commit cc35e8b

Browse files
committed
website: fix type issue.
1 parent 7573daa commit cc35e8b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

www/src/components/Fallback.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
2+
import type * as CSS from 'csstype';
23

34
export interface FallbackProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {}
4-
const defaultStyle: React.CSSProperties = {
5+
const defaultStyle: CSS.Properties<string | number> = {
56
display: 'flex',
67
alignItems: 'center',
78
justifyContent: 'center',

www/src/pages/home/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import GitHubCorners from '@uiw/react-github-corners';
55
import Github from '@uiw/react-shields/github';
66
import Npm from '@uiw/react-shields/npm';
77
import BackToUp from '@uiw/react-back-to-top';
8+
import type * as CSS from 'csstype';
89
import logo from '../../logo.png';
910
import Example from './Example';
1011

@@ -112,7 +113,7 @@ const AppHeader = styled.div`
112113
const hyperlink: {
113114
href: string;
114115
label: string;
115-
style?: React.CSSProperties;
116+
style?: CSS.Properties<string | number>;
116117
}[] = [
117118
{
118119
href: 'https://www.npmjs.com/package/@uiw/react-codemirror',

0 commit comments

Comments
 (0)