Created
February 23, 2022 20:49
-
-
Save natafaye/d480008d62192bdfe92b3efab38a9614 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react' | |
export default function CategoryFilter() { | |
return ( | |
<div style={{ border: "1px solid black", padding: "15px", margin: "15px" }}> | |
<h3>CategoryFilter Component</h3> | |
<button>Tell TransactionFilters I'm Set</button> | |
<button>Tell TransactionFilters I'm Cleared</button> | |
</div> | |
) | |
} |
This file contains hidden or 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
import React from 'react' | |
import CategoryFilter from './CategoryFilter' | |
export default function TransactionFilters() { | |
return ( | |
<div style={{ border: "1px solid black", padding: "15px", margin: "15px" }}> | |
<h3>TransactionFilters Component</h3> | |
<button>Tell TransactionsPage to Filter</button> | |
<p>Here's what I've been told: { "No filters" }</p> | |
<CategoryFilter/> | |
</div> | |
) | |
} |
This file contains hidden or 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
import React from 'react' | |
import TransactionFilters from './TransactionFilters' | |
export default function TransactionPage() { | |
return ( | |
<div style={{ border: "1px solid black", padding: "15px", margin: "15px" }}> | |
<h3>TransactionPage</h3> | |
<p>Here's what I've been told: { "No filters" }</p> | |
<TransactionFilters/> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment