-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8da3902
commit a4cdea4
Showing
11 changed files
with
188 additions
and
79 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
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
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
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
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
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,36 @@ | ||
import React, { ReactElement } from "react"; | ||
import { QueryParamContext } from "../../Layout/QueryParamContext"; | ||
|
||
interface Props {} | ||
|
||
function FrequencyOptions({}: Props): ReactElement { | ||
const { paymentSetup, setfrequency,frequency } = React.useContext(QueryParamContext); | ||
console.log("paymentSetup", paymentSetup); | ||
|
||
return ( | ||
<div className="d-flex justify-content-between flex-wrap"> | ||
{paymentSetup.frequencies && paymentSetup.frequencies.length > 0 ? ( | ||
paymentSetup.frequencies.map((frequencyOption:any, index:any) => { | ||
return ( | ||
<div | ||
className={`tree-selection-option mt-20 ${ | ||
frequencyOption === frequency | ||
? "tree-selection-option-selected" | ||
: "" | ||
}`} | ||
onClick={ | ||
()=>setfrequency(frequencyOption) | ||
} | ||
> | ||
{frequencyOption} | ||
</div> | ||
); | ||
}) | ||
) : ( | ||
<></> | ||
)} | ||
</div> | ||
); | ||
} | ||
|
||
export default FrequencyOptions; |
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
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
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
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
Oops, something went wrong.