Skip to content

Commit

Permalink
marked token are wrong, we could consider using reactjs.org approach …
Browse files Browse the repository at this point in the history
…in the future
  • Loading branch information
oliviertassinari committed Nov 7, 2020
1 parent 725c552 commit c0f2269
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 21 deletions.
6 changes: 3 additions & 3 deletions docs/src/pages/system/basics/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default function Demo() {
}}
>
<Box component="span" sx={{ fontSize: 16, mt: 1 }}>
{'123 Main St, Phoenix AZ'}
123 Main St, Phoenix AZ
</Box>
<Box component="span" sx={{ color: 'primary.main', fontSize: 22 }}>
{'$280,000 — $310,000'}
$280,000 — $310,000
</Box>
<Box
sx={{
Expand All @@ -55,7 +55,7 @@ export default function Demo() {
}}
>
<ErrorOutlineIcon />
{'CONFIDENCE SCORE 85%'}
CONFIDENCE SCORE 85%
</Box>
</Box>
</Box>
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/system/basics/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default function Demo() {
}}
>
<Box component="span" sx={{ fontSize: 16, mt: 1 }}>
{'123 Main St, Phoenix AZ'}
123 Main St, Phoenix AZ
</Box>
<Box component="span" sx={{ color: 'primary.main', fontSize: 22 }}>
{'$280,000 — $310,000'}
$280,000 — $310,000
</Box>
<Box
sx={{
Expand All @@ -55,7 +55,7 @@ export default function Demo() {
}}
>
<ErrorOutlineIcon />
{'CONFIDENCE SCORE 85%'}
CONFIDENCE SCORE 85%
</Box>
</Box>
</Box>
Expand Down
10 changes: 6 additions & 4 deletions docs/src/pages/system/basics/Why.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ export default function Why() {
return (
/* prettier-ignore */
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
<Box sx={{ color: 'text.secondary' }}>Sessions</Box>
<Box sx={{ color: 'text.secondary' }}>
Sessions
</Box>
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
{'98.3 K'}
98.3 K
</Box>
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
{'18.77%'}
18.77%
</Box>
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
{'vs last week'}
vs last week
</Box>
</Box>
);
Expand Down
10 changes: 6 additions & 4 deletions docs/src/pages/system/basics/Why.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ export default function Why() {
return (
/* prettier-ignore */
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
<Box sx={{ color: 'text.secondary' }}>Sessions</Box>
<Box sx={{ color: 'text.secondary' }}>
Sessions
</Box>
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
{'98.3 K'}
98.3 K
</Box>
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
{'18.77%'}
18.77%
</Box>
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
{'vs last week'}
vs last week
</Box>
</Box>
);
Expand Down
16 changes: 9 additions & 7 deletions docs/src/pages/system/basics/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ const StatPrevious = styled('div')(
return (
<StatWrapper>
<StatHeader>Sessions</StatHeader>
<StatValue>{'98.3 K'}</StatValue>
<StatValue>98.3 K</StatValue>
<StyledTrend />
<StatDiff>{'18.77%'}</StatDiff>
<StatPrevious>{'vs last week'}</StatPrevious>
<StatDiff>18.77%</StatDiff>
<StatPrevious>vs last week</StatPrevious>
</StatWrapper>
);
```
Expand All @@ -98,16 +98,18 @@ return (
```jsx
/* prettier-ignore */
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
<Box sx={{ color: 'text.secondary' }}>Sessions</Box>
<Box sx={{ color: 'text.secondary' }}>
Sessions
</Box>
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
{'98.3 K'}
98.3 K
</Box>
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
{'18.77%'}
18.77%
</Box>
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
{'vs last week'}
vs last week
</Box>
</Box>
```
Expand Down

0 comments on commit c0f2269

Please sign in to comment.