mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
style(prettier): format code style
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user