-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding AREM in data visualisation and requestor - Ref gestion-d…
…e-projet#2183 (#911) * feat: adding Arem visualisation on exploration - Ref gestion-de-projet#2183 * feat: add AREM adaptation for requestor - Ref gestion-de-projet#2279 * feat: add info on source ORBIS-AREM - Ref gestion-de-projet#2279
- Loading branch information
1 parent
a8e69c3
commit def2646
Showing
18 changed files
with
172 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { useContext, useEffect, useState } from 'react' | ||
import { RadioGroup, Radio, FormControlLabel, Typography } from '@mui/material' | ||
import { InputWrapper } from 'components/ui/Inputs' | ||
import { FormContext } from 'components/ui/Modal' | ||
|
||
type SourceFilterProps = { | ||
value: string | ||
name: string | ||
} | ||
|
||
const SourceFilter = ({ name, value }: SourceFilterProps) => { | ||
const context = useContext(FormContext) | ||
const [source, setSource] = useState(value) | ||
|
||
useEffect(() => { | ||
if (context?.updateFormData) context.updateFormData(name, source) | ||
}, [source]) | ||
|
||
return ( | ||
<InputWrapper> | ||
<Typography variant="h3">Source :</Typography> | ||
<RadioGroup | ||
row | ||
style={{ justifyContent: 'space-around' }} | ||
aria-label="mode" | ||
name="criteria-mode-radio" | ||
value={source} | ||
onChange={(e) => setSource((e.target as HTMLInputElement).value)} | ||
> | ||
<FormControlLabel value="AREM" control={<Radio color="secondary" />} label="AREM" /> | ||
<FormControlLabel value="ORBIS" control={<Radio color="secondary" />} label="ORBIS" /> | ||
</RadioGroup> | ||
</InputWrapper> | ||
) | ||
} | ||
|
||
export default SourceFilter |
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
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.