|
1 | 1 | import React, { useState } from 'react';
|
2 |
| - |
3 | 2 | import Container from '../components/Container';
|
4 | 3 | import Layout from '../components/Layout';
|
5 | 4 | import Sidebar from '../components/Sidebar';
|
6 | 5 |
|
| 6 | +import pages from '../data/sidenav.json'; |
| 7 | + |
7 | 8 | // TODO: move this js file to same directory and update import
|
8 | 9 | import '../templates/Reference.scss';
|
9 | 10 |
|
10 |
| -// TODO: pull this in from Gatsby |
11 |
| -const pages = [ |
12 |
| - { displayName: 'Overview', url: '' }, |
13 |
| - { |
14 |
| - displayName: 'CLI', |
15 |
| - url: '', |
16 |
| - children: [ |
17 |
| - { displayName: 'newrelic', url: '' }, |
18 |
| - { displayName: 'nr1', url: '' }, |
19 |
| - ], |
20 |
| - }, |
21 |
| - { displayName: 'GraphQL', url: '' }, |
22 |
| - { |
23 |
| - displayName: 'Applications', |
24 |
| - url: '', |
25 |
| - children: [ |
26 |
| - { displayName: 'Component Library', url: '', active: true }, |
27 |
| - { displayName: 'File structure', url: '' }, |
28 |
| - ], |
29 |
| - }, |
30 |
| - { |
31 |
| - displayName: 'Data Collectors', |
32 |
| - url: '', |
33 |
| - children: [ |
34 |
| - { displayName: 'Custom Attributes', url: '' }, |
35 |
| - { displayName: 'Custom Events', url: '' }, |
36 |
| - { displayName: 'Open Telemetry', url: '' }, |
37 |
| - { displayName: 'Telemetry SDK', url: '' }, |
38 |
| - ], |
39 |
| - }, |
40 |
| - { |
41 |
| - displayName: 'Automation', |
42 |
| - url: '', |
43 |
| - children: [ |
44 |
| - { displayName: 'Cloud Formation Provider', url: '' }, |
45 |
| - { displayName: 'Terraform Provider', url: '' }, |
46 |
| - { |
47 |
| - displayName: 'Agent Deploy', |
48 |
| - url: '', |
49 |
| - children: [ |
50 |
| - { displayName: 'Ansible', url: '' }, |
51 |
| - { displayName: 'Chef', url: '' }, |
52 |
| - { displayName: 'Puppet', url: '' }, |
53 |
| - ], |
54 |
| - }, |
55 |
| - ], |
56 |
| - }, |
57 |
| -]; |
58 |
| - |
59 | 11 | const Reference = () => {
|
60 | 12 | const [isOpen, setIsOpen] = useState(false);
|
61 | 13 |
|
|
0 commit comments