Skip to content

Commit d264c65

Browse files
committed
Add better code block component
1 parent c5a34e4 commit d264c65

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

content/github/getting-started-with-github/access-permissions-on-github.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ Organization members can have *owner*{% if currentVersion == "free-pro-team@late
4242
- "[Repository permission levels for an organization](/articles/repository-permission-levels-for-an-organization)"
4343
- "[About teams](/articles/about-teams)"
4444

45-
#### Cool Table Component
46-
<!--react-->
47-
<CoolTable />
48-
<!--end-react-->
49-
5045
{% if currentVersion == "free-pro-team@latest" %}
5146

5247
### Enterprise accounts

javascripts/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import initializeEvents from './events'
1919
import CodeBlock from '../react/CodeBlock'
2020
import CoolTable from '../react/CoolTable'
2121

22+
import 'react-tabs/style/react-tabs.css'
23+
2224
document.addEventListener('DOMContentLoaded', async () => {
2325
displayPlatformSpecificContent()
2426
explorer()

react/CodeBlock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { Prism } = require('react-syntax-highlighter')
44
const { dark } = require('react-syntax-highlighter/dist/cjs/styles/prism')
55
const { Tab, Tabs, TabList, TabPanel } = require('react-tabs')
66

7+
78
const CodeBlock = (props) => {
89
let jsPanel
910
let jsTab

0 commit comments

Comments
 (0)