-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generic Builder Card Components (#13570)
* Introduce BuilderCard component family for use in query builder * Implement BuilderCard in data card component * Implement BuilderCard in selector list * Update function selector * Implement BuilderCard in tag selector and remove unused styles * Use AddCardButton and proper container classname * Remove unused imports
- Loading branch information
alexpaxton
authored
Apr 23, 2019
1 parent
6c20c6c
commit e063e8f
Showing
16 changed files
with
489 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Libraries | ||
import React, {PureComponent} from 'react' | ||
|
||
// Components | ||
import {Button, IconFont, ButtonShape} from '@influxdata/clockface' | ||
|
||
interface Props { | ||
collapsible: boolean | ||
onClick: () => void | ||
} | ||
|
||
export default class AddCardButton extends PureComponent<Props> { | ||
public render() { | ||
const {onClick} = this.props | ||
return ( | ||
<Button | ||
customClass="query-builder--add-card-button" | ||
onClick={onClick} | ||
icon={IconFont.Plus} | ||
shape={ButtonShape.Square} | ||
/> | ||
) | ||
} | ||
} |
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
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
Oops, something went wrong.