This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): integrate pattern navigation
- Loading branch information
1 parent
7115a7d
commit 806e763
Showing
2 changed files
with
39 additions
and
6 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,32 @@ | ||
import Layout from '../../lsg/patterns/layout'; | ||
import * as React from 'react'; | ||
import { Store } from '../../store'; | ||
import TabNavigation, {TabNavigationItem} from '../../lsg/patterns/tab-navigation'; | ||
|
||
export interface PatternNavigationProps { | ||
store: Store; | ||
} | ||
|
||
export class PatternNavigation extends React.Component<PatternNavigationProps> { | ||
|
||
public constructor(props: PatternNavigationProps) { | ||
super(props); | ||
|
||
this.handleLinkClick = this.handleLinkClick.bind(this); | ||
} | ||
|
||
public render(): JSX.Element | null { | ||
return ( | ||
<Layout> | ||
<TabNavigation> | ||
<TabNavigationItem active={true} onClick={this.handleLinkClick} tabText="Patterns" /> | ||
<TabNavigationItem active={false} onClick={this.handleLinkClick} tabText="Properties" /> | ||
</TabNavigation> | ||
</Layout> | ||
); | ||
} | ||
|
||
protected handleLinkClick(): void { | ||
console.log('click'); | ||
} | ||
} |