Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST-1 #23

Open
wants to merge 2 commits into
base: TEST-2
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 'prismjs/components/prism-typescript.min'

import 'prismjs/themes/prism.css'

export {highlightAll, highlightElement}

class AllRepos_ extends React.PureComponent<AllReposProps & AllReposFuns> {
render() {
const {isAdmin, isNewUI, allReposShown, isLoadingPage, isLoadingRepos, error, onChangeHasUserPat} = this.props
return (
<Page>
{a ? <p>test</p> : null}
</Page>
)
}
}

12 changes: 12 additions & 0 deletions test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export const Bubble2 = function Bubble2(props) {
const {children, onlyBody, onlyHeader} = props;
const header = onlyBody ? undefined
: onlyHeader ? children
: Array.isArray(children) ? children[0]
: children;
const body = onlyBody ? children
: onlyHeader ? undefined
: Array.isArray(children) ? children[1]
: undefined;
return <Bubble {...props} header={header}>{body}</Bubble>
}
5 changes: 5 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function subscribeToStore(store: any) {
const handlers = [changeHash]
const enabledModules = ['browse-git']
subscribeHashHandlers(handlers, enabledModules, store, getRouting)
}
11 changes: 11 additions & 0 deletions test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class AllRepos_ extends React.PureComponent<AllReposProps & AllReposFuns> {
render() {
const {isAdmin, isNewUI, allReposShown, isLoadingPage, isLoadingRepos, error, onChangeHasUserPat} = this.props
return (
<Page>
{a ? <p>test</p> : null}
</Page>
)
}
}