Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from ooni/ux/websites-result-details
Implement skeleton for Test Details Views
- Loading branch information
Showing
3 changed files
with
206 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react' | ||
import { FormattedMessage } from 'react-intl' | ||
import { Flex, Box, Text } from 'ooni-components' | ||
|
||
const WebConnectivity = ({measurement, render}) => { | ||
|
||
const WebDetails = () => ( | ||
<Flex justifyContent='center'> | ||
<Box> | ||
<Flex my={6}> | ||
<Box> Web Details </Box> | ||
<Box> </Box> | ||
</Flex> | ||
<Flex my={6}> | ||
<Box> More Details </Box> | ||
<Box> </Box> | ||
</Flex> | ||
<Flex my={6}> | ||
<Box> More Details </Box> | ||
<Box> </Box> | ||
</Flex> | ||
<Flex my={6}> | ||
<Box> More Details </Box> | ||
<Box> </Box> | ||
</Flex> | ||
</Box> | ||
</Flex> | ||
) | ||
|
||
return ( | ||
<div> | ||
{render({ | ||
heroBG: 'green8', // TODO: (sarathms) Determine color based on presence of anomaly | ||
details: <WebDetails /> | ||
})} | ||
</div> | ||
) | ||
} | ||
|
||
export { WebConnectivity } | ||
|
||
// Metadata for the nettest | ||
export default { | ||
name: <FormattedMessage id='Test.WebConnectivity.Fullname' /> | ||
} |