Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/packages/cell/demos/h5/demo4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react'
import { Cell, Switch } from '@nutui/nutui-react'

const App = () => {
return <Cell title="Switch" extra={<Switch defaultChecked />} />
return (
<Cell title="Switch" align="center" extra={<Switch defaultChecked />} />
)
}
export default App
2 changes: 1 addition & 1 deletion src/packages/cell/demos/taro/demo4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Cell, Switch } from '@nutui/nutui-react-taro'
const App = () => {
return (
<Cell.Group>
<Cell title="Switch" extra={<Switch defaultChecked />} />
<Cell title="Switch" align="center" extra={<Switch defaultChecked />} />
</Cell.Group>
)
}
Expand Down
Loading