-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge feature branch and fix conflicts
- Loading branch information
Showing
37 changed files
with
1,539 additions
and
916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React, { useState } from 'react'; | ||
import { Button, Empty, Form, Switch } from '@oceanbase/design'; | ||
|
||
export default () => { | ||
const [title, setTitle] = useState(true); | ||
const [description, setDescription] = useState(true); | ||
const [children, setChildren] = useState(true); | ||
|
||
return ( | ||
<> | ||
<Form | ||
layout="inline" | ||
style={{ | ||
marginBottom: 48, | ||
}} | ||
> | ||
<Form.Item label="title" required={true}> | ||
<Switch | ||
size="small" | ||
value={title} | ||
onChange={value => { | ||
setTitle(value); | ||
}} | ||
/> | ||
</Form.Item> | ||
<Form.Item label="description" required={true}> | ||
<Switch | ||
size="small" | ||
value={description} | ||
onChange={value => { | ||
setDescription(value); | ||
}} | ||
/> | ||
</Form.Item> | ||
<Form.Item label="children" required={true}> | ||
<Switch | ||
size="small" | ||
value={children} | ||
onChange={value => { | ||
setChildren(value); | ||
}} | ||
/> | ||
</Form.Item> | ||
</Form> | ||
<Empty | ||
image={Empty.PRESENTED_IMAGE_COLORED} | ||
title={title && 'Create Your Cluster'} | ||
description={description ? 'There is no cluster, welcome to create one!' : ''} | ||
> | ||
{children && <Button type="primary">Create</Button>} | ||
</Empty> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.