Skip to content

Commit

Permalink
Merge pull request #5 from columbiaspace/Matt-G
Browse files Browse the repository at this point in the history
Added Procedures
  • Loading branch information
adenjonah authored Feb 22, 2024
2 parents 9181331 + 43113f3 commit 84590a2
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 2 deletions.
33 changes: 32 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@babel/plugin-transform-numeric-separator": "^7.23.4",
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@rollup/plugin-terser": "^0.4.4"
"@rollup/plugin-terser": "^0.4.4",
"raw-loader": "^4.0.2"
}
}
1 change: 1 addition & 0 deletions src/assets/sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello World
15 changes: 15 additions & 0 deletions src/components/ProcedureItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'

function ProcedureItem({name, description}) {
return (
<div className="ProcedureItem" >
<h1>{name}</h1>
<p>{description}</p>

</div>


);
}

export default ProcedureItem;
20 changes: 20 additions & 0 deletions src/helpers/ProcedureList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export const ProcedureList = [

{
name: "Procdure 1:",
description: "Blah Blah Blah",

},

{
name: "Procdure 2:",
description: "Blah Blah Blah",

},

{
name: "Procdure 3:",
description: "Blah Blah Blah",

},
];
15 changes: 15 additions & 0 deletions src/pages/rocks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import React, { useState } from 'react';
import './../pages-style/rocks.css';

import { ProcedureList } from '../helpers/ProcedureList';
import ProcedureItem from '../components/ProcedureItem';
function rocks() {


function Rocks() {
const [showWarning, setShowWarning] = useState(false);

Expand All @@ -16,6 +21,16 @@ function Rocks() {
<div>
<h1>Rocks</h1>
<p>This page will display samples that have been collected, and what samples should be kept</p>
<div className = "ProcedureList">
{ProcedureList.map((Item, key) =>{
<ProcedureItem
key = {key}
name = {Item.name}
description = {Item.description}
/>
)
})}
</div>
<button onClick={handleShowWarning}>Show Warning</button>

{showWarning && (
Expand Down

0 comments on commit 84590a2

Please sign in to comment.