-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify WWW components with boundary component & destructuring assig…
…nment defaults
- Loading branch information
Showing
16 changed files
with
799 additions
and
902 deletions.
There are no files selected for viewing
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,15 @@ | ||
import * as React from "react"; | ||
import { FunctionComponent } from "react"; | ||
|
||
type BoundaryProps = { | ||
show?: boolean; | ||
boundary: React.ReactNode; | ||
}; | ||
|
||
const XBoundary: FunctionComponent<BoundaryProps> = props => ( | ||
<React.Fragment> | ||
{props.show ? props.children : props.boundary} | ||
</React.Fragment> | ||
); | ||
|
||
export default XBoundary; |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import "./index.css"; | ||
import './index.css'; | ||
|
||
export { default as X404 } from "./X404"; | ||
export { default as XCardGroup } from "./XCardGroup"; | ||
export { default as XLayout } from "./XLayout"; | ||
export { default as XPrivateRoute } from "./XPrivateRoute"; | ||
export { default as XSidebar } from "./XSidebar"; | ||
export { default as XToolbar } from "./XToolbar"; | ||
export { default as XUnimplemented } from "./XUnimplemented"; | ||
export {default as X404} from './X404'; | ||
export {default as XBoundary} from './XBoundary'; | ||
export {default as XCardGroup} from './XCardGroup'; | ||
export {default as XLayout} from './XLayout'; | ||
export {default as XPrivateRoute} from './XPrivateRoute'; | ||
export {default as XSidebar} from './XSidebar'; | ||
export {default as XToolbar} from './XToolbar'; | ||
export {default as XUnimplemented} from './XUnimplemented'; |
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,16 @@ | ||
import * as React from "react"; | ||
import { Header, Icon, Segment } from "semantic-ui-react"; | ||
|
||
const XNoTasksFound = () => ( | ||
<Segment placeholder> | ||
<Header as="h2" icon> | ||
<Icon name="search" /> | ||
No Tasks Found | ||
<Header.Subheader> | ||
When new tasks are created, they'll be displayed here. | ||
</Header.Subheader> | ||
</Header> | ||
</Segment> | ||
); | ||
|
||
export default XNoTasksFound; |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
export { default as XTaskCard, XTaskCardDisplayType } from './XTaskCard'; | ||
export { default as XTaskContent } from './XTaskContent'; | ||
export { default as XTaskError } from './XTaskError'; | ||
export { default as XTaskOutput } from './XTaskOutput'; | ||
export { default as XTaskStatus } from './XTaskStatus'; | ||
export { default as XTaskSummary, XTaskSummaryDisplayType } from './XTaskSummary'; | ||
|
||
export { default as XNoTasksFound } from "./XNoTasksFound"; | ||
export { default as XTaskCard, XTaskCardDisplayType } from "./XTaskCard"; | ||
export { default as XTaskContent } from "./XTaskContent"; | ||
export { default as XTaskError } from "./XTaskError"; | ||
export { default as XTaskOutput } from "./XTaskOutput"; | ||
export { default as XTaskStatus } from "./XTaskStatus"; | ||
export { | ||
default as XTaskSummary, | ||
XTaskSummaryDisplayType | ||
} from "./XTaskSummary"; |
Oops, something went wrong.