Skip to content

Commit

Permalink
replace more style -> sx
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 24, 2021
1 parent 2f932eb commit 1920072
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
8 changes: 2 additions & 6 deletions docs/src/pages/components/icons/FontAwesomeIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ export default function FontAwesomeIcon() {
<Icon
baseClassName="fas"
className="fa-plus-circle"
style={{ color: green[500] }}
sx={{ color: green[500] }}
/>
<Icon baseClassName="fas" className="fa-plus-circle" fontSize="small" />
<Icon
baseClassName="fas"
className="fa-plus-circle"
style={{ fontSize: 30 }}
/>
<Icon baseClassName="fas" className="fa-plus-circle" sx={{ fontSize: 30 }} />
</Box>
);
}
8 changes: 2 additions & 6 deletions docs/src/pages/components/icons/FontAwesomeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ export default function FontAwesomeIcon() {
<Icon
baseClassName="fas"
className="fa-plus-circle"
style={{ color: green[500] }}
sx={{ color: green[500] }}
/>
<Icon baseClassName="fas" className="fa-plus-circle" fontSize="small" />
<Icon
baseClassName="fas"
className="fa-plus-circle"
style={{ fontSize: 30 }}
/>
<Icon baseClassName="fas" className="fa-plus-circle" sx={{ fontSize: 30 }} />
</Box>
);
}
4 changes: 2 additions & 2 deletions docs/src/pages/components/icons/Icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function Icons() {
>
<Icon>add_circle</Icon>
<Icon color="primary">add_circle</Icon>
<Icon style={{ color: green[500] }}>add_circle</Icon>
<Icon sx={{ color: green[500] }}>add_circle</Icon>
<Icon fontSize="small">add_circle</Icon>
<Icon style={{ fontSize: 30 }}>add_circle</Icon>
<Icon sx={{ fontSize: 30 }}>add_circle</Icon>
</Box>
);
}
4 changes: 2 additions & 2 deletions docs/src/pages/components/icons/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function Icons() {
>
<Icon>add_circle</Icon>
<Icon color="primary">add_circle</Icon>
<Icon style={{ color: green[500] }}>add_circle</Icon>
<Icon sx={{ color: green[500] }}>add_circle</Icon>
<Icon fontSize="small">add_circle</Icon>
<Icon style={{ fontSize: 30 }}>add_circle</Icon>
<Icon sx={{ fontSize: 30 }}>add_circle</Icon>
</Box>
);
}

0 comments on commit 1920072

Please sign in to comment.