File tree Expand file tree Collapse file tree 15 files changed +82
-18
lines changed
Expand file tree Collapse file tree 15 files changed +82
-18
lines changed Original file line number Diff line number Diff line change 11import PropTypes from 'prop-types'
22import Box from '@mui/material/Box'
3- import Typography from '@mui/material/typography '
3+ import Typography from '@mui/material/Typography '
44import FullBox from '@/components/common/layout/fullbox'
55
66function ArticleText ( {
Original file line number Diff line number Diff line change 11import PropTypes from 'prop-types'
22import Box from '@mui/material/Box'
3- import Typography from '@mui/material/typography '
3+ import Typography from '@mui/material/Typography '
44import FullBox from '@/components/common/layout/fullbox'
55import styles from './styles'
66
Original file line number Diff line number Diff line change 1+ import Container from '@mui/material/Container'
2+ import Typography from '@mui/material/Typography'
3+ import CountryList from '@/domain/profile/countrylist'
4+
5+ function CountriesComponent ( {
6+ countries,
7+ handleSelectCountry
8+ } ) {
9+ return (
10+ < Container maxWidth = 'lg' sx = { { margin : 'auto' , textAlign : 'center' } } >
11+ < Typography variant = 'h3' >
12+ Country Profile
13+ </ Typography >
14+ < Typography variant = 'h5' sx = { { marginBottom : '48px' } } >
15+ Select a country to view its profile
16+ </ Typography >
17+
18+ < CountryList
19+ countries = { countries }
20+ handleSelectCountry = { handleSelectCountry }
21+ />
22+ </ Container >
23+ )
24+ }
25+
26+ export default CountriesComponent
Original file line number Diff line number Diff line change 11import Container from '@mui/material/Container'
22import Grid from '@mui/material/Grid'
3- import Typography from '@mui/material/typography '
3+ import Typography from '@mui/material/Typography '
44import SubContentText from '@/components/common/layout/subtcontenttext'
55import DonutChart from '@/components/common/ui/charts/donut'
66import BarChart from '@/components/common/ui/charts/bar'
Original file line number Diff line number Diff line change 11import Grid from '@mui/material/Grid'
2- import Typography from '@mui/material/typography '
2+ import Typography from '@mui/material/Typography '
33import SubContentText from '@/components/common/layout/subtcontenttext'
44import DonutChart from '@/components/common/ui/charts/donut'
55import BarChart from '@/components/common/ui/charts/bar'
Original file line number Diff line number Diff line change 11import { useState } from 'react'
2+ import Link from 'next/link'
23import Button from '@mui/material/Button'
34import Box from '@mui/material/Box'
45import Container from '@mui/material/Container'
56import Grid from '@mui/material/Grid'
6- import Typography from '@mui/material/typography '
7+ import Typography from '@mui/material/Typography '
78
89import NavigationTabs from '@/domain/profiletabs/navigationtabs'
910import TabPanel from '@/domain/profiletabs/tabpanel'
@@ -16,7 +17,7 @@ import ArticleText from '@/components/common/layout/articletext'
1617import styles from './styles'
1718
1819function ProfileTabsComponent ( {
19- // country,
20+ country,
2021 // countries,
2122 textData,
2223 donutData,
@@ -33,16 +34,18 @@ function ProfileTabsComponent ({
3334 < Box sx = { styles . headerTitle } >
3435 < Box >
3536 < Typography variant = 'h1' >
36- Pakistan
37+ { country }
3738 </ Typography >
3839 < Typography variant = 'h4' >
3940 Country Profile
4041 </ Typography >
4142 </ Box >
4243
43- < Button variant = 'outlined' >
44- Countries
45- </ Button >
44+ < Link href = '/countries' passHref >
45+ < Button variant = 'outlined' >
46+ Countries
47+ </ Button >
48+ </ Link >
4649 </ Box >
4750
4851 < NavigationTabs
Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ const styles = {
2323 display : 'flex' ,
2424 justifyContent : 'space-between' ,
2525 alignItems : 'center' ,
26-
2726 '& button' : {
2827 height : '50px' ,
2928 backgroundColor : theme => theme . palette . primary . light ,
3029 '&:hover' : {
3130 backgroundColor : '#fff'
3231 }
32+ } ,
33+ '& a' : {
34+ textDecoration : 'none'
3335 }
3436 }
3537}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Button from '@mui/material/Button'
22import { styled } from '@mui/material/styles'
33
44const CountryButton = styled ( ( props ) => (
5- < Button { ...props } />
5+ < Button { ...props } color = 'tertiary' />
66 /* eslint-disable no-unused-vars */
77) ) ( ( { theme } ) => ( {
88 width : '150px'
Original file line number Diff line number Diff line change 11import Grid from '@mui/material/Grid'
22import LineGraph from '@/components/common/ui/charts/line'
3- import Typography from '@mui/material/typography '
3+ import Typography from '@mui/material/Typography '
44import SubContentText from '@/components/common/layout/subtcontenttext'
55
66function ClimateChange ( { barData, textData } ) {
Original file line number Diff line number Diff line change 11import Grid from '@mui/material/Grid'
22import BarChart from '@/components/common/ui/charts/bar'
3- import Typography from '@mui/material/typography '
3+ import Typography from '@mui/material/Typography '
44import SubContentText from '@/components/common/layout/subtcontenttext'
55
66function ClimateRisks ( { barData, textData } ) {
You can’t perform that action at this time.
0 commit comments