-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#SH-41 -(JSX)-Rebuild / Rename scaffolding for basic components #41
- Loading branch information
1 parent
eb42281
commit 36bb2f2
Showing
4 changed files
with
33 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
import React from 'react'; | ||
import React, { Fragment, useState, useRef, useEffect } from 'react'; | ||
import { v4 as uuidv4 } from 'uuid'; | ||
import Header from '../Header/Header'; | ||
import ChapterList from '../Chapter/ChapterList'; | ||
import { ChapterList } from '../Chapter/ChapterList'; | ||
import '../../styles/App.css'; | ||
import Branding from '../Branding/Branding'; | ||
import GridTable from '../GridTable/GridTable'; | ||
|
||
export function App() { | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<Header /> | ||
<Branding /> | ||
<p>Welcome to Summer House, these are the latest articles created in Drupal backend, obtained through a GraphQL query.</p> | ||
<p>Can you see the list of items? If not, try reloading the current page.</p> | ||
<a className="App-link" href="http://summerhouse.ddev.site:8091/Home/" target="_blank" rel="noopener noreferrer">Learn more about Summer House</a> | ||
<br></br><hr></hr> | ||
<br></br> | ||
<ChapterList /> | ||
<GridTable /> | ||
</div> | ||
<Fragment> | ||
<ChapterList /> | ||
</Fragment> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
export function ChapterItem({ id, title }) { | ||
{/* Load the basic parameters of a chapter item */} | ||
|
||
return ( | ||
<li> | ||
<input type="checkbox" /> | ||
{id} - {title} | ||
</li> | ||
); | ||
} |
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