style(prettier): format code style

This commit is contained in:
unix
2020-05-06 14:18:28 +08:00
parent cf8e277324
commit 112c826575
263 changed files with 4927 additions and 3992 deletions

View File

@@ -6,10 +6,18 @@ const Home = () => (
<div className="my-app">
<Card shadow style={{ width: '500px', margin: '100px auto' }}>
<Text className="my-text">Modern and minimalist React UI library.</Text>
<Text type={'success'} style={{ color: '#000' }}>Modern and minimalist React UI library.</Text>
<Text type={'warning'} style={{ color: '#000' }}>Modern and minimalist React UI library. </Text>
<Text type={'error'} style={{ color: '#000' }}>Modern and minimalist React UI library. </Text>
<Text type={'secondary'} style={{ color: '#000' }}>Modern and minimalist React UI library.</Text>
<Text type={'success'} style={{ color: '#000' }}>
Modern and minimalist React UI library.
</Text>
<Text type={'warning'} style={{ color: '#000' }}>
Modern and minimalist React UI library.{' '}
</Text>
<Text type={'error'} style={{ color: '#000' }}>
Modern and minimalist React UI library.{' '}
</Text>
<Text type={'secondary'} style={{ color: '#000' }}>
Modern and minimalist React UI library.
</Text>
</Card>
</div>
)

View File

@@ -13,12 +13,10 @@ const App = () => {
}
ReactDom.render(
(
<React.StrictMode>
<App />
</React.StrictMode>
),
document.getElementById('app')
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('app'),
)
export default App

View File

@@ -7,9 +7,15 @@ const Home = () => {
return (
<Card shadow style={{ width: '500px', margin: '100px auto' }}>
<Text>Modern and minimalist React UI library.</Text>
<Text type={'success'}>Modern and minimalist React UI library. <Tag>{theme.palette.success}</Tag></Text>
<Text type={'warning'}>Modern and minimalist React UI library. <Tag>{theme.palette.warning}</Tag></Text>
<Text type={'error'}>Modern and minimalist React UI library. <Tag>{theme.palette.error}</Tag></Text>
<Text type={'success'}>
Modern and minimalist React UI library. <Tag>{theme.palette.success}</Tag>
</Text>
<Text type={'warning'}>
Modern and minimalist React UI library. <Tag>{theme.palette.warning}</Tag>
</Text>
<Text type={'error'}>
Modern and minimalist React UI library. <Tag>{theme.palette.error}</Tag>
</Text>
<Text type={'secondary'}>Modern and minimalist React UI library.</Text>
</Card>
)

View File

@@ -14,12 +14,10 @@ const App = () => {
}
ReactDom.render(
(
<React.StrictMode>
<App />
</React.StrictMode>
),
document.getElementById('app')
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('app'),
)
export default App

View File

@@ -1,5 +1,3 @@
/**
* Just customize what you need, deep merge themes by default.
*
@@ -20,5 +18,5 @@ export default {
success: '#ccc',
warning: '#ccc',
error: '#ccc',
}
},
}