Skip to content

Commit

Permalink
[docs] Replace negative actions from fab examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuragic committed Oct 18, 2019
1 parent 910da29 commit 087becb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/components/buttons/FloatingActionButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeStyles } from '@material-ui/core/styles';
import Fab from '@material-ui/core/Fab';
import AddIcon from '@material-ui/icons/Add';
import EditIcon from '@material-ui/icons/Edit';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';
import NavigationIcon from '@material-ui/icons/Navigation';

const useStyles = makeStyles(theme => ({
Expand All @@ -26,12 +26,12 @@ export default function FloatingActionButtons() {
<Fab color="secondary" aria-label="edit" className={classes.fab}>
<EditIcon />
</Fab>
<Fab variant="extended" aria-label="delete" className={classes.fab}>
<Fab variant="extended" aria-label="like" className={classes.fab}>
<NavigationIcon className={classes.extendedIcon} />
Extended
</Fab>
<Fab disabled aria-label="delete" className={classes.fab}>
<DeleteIcon />
<Fab disabled aria-label="like" className={classes.fab}>
<FavoriteIcon />
</Fab>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/components/buttons/FloatingActionButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import Fab from '@material-ui/core/Fab';
import AddIcon from '@material-ui/icons/Add';
import EditIcon from '@material-ui/icons/Edit';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';
import NavigationIcon from '@material-ui/icons/Navigation';

const useStyles = makeStyles((theme: Theme) =>
Expand All @@ -28,12 +28,12 @@ export default function FloatingActionButtons() {
<Fab color="secondary" aria-label="edit" className={classes.fab}>
<EditIcon />
</Fab>
<Fab variant="extended" aria-label="delete" className={classes.fab}>
<Fab variant="extended" aria-label="like" className={classes.fab}>
<NavigationIcon className={classes.extendedIcon} />
Extended
</Fab>
<Fab disabled aria-label="delete" className={classes.fab}>
<DeleteIcon />
<Fab disabled aria-label="like" className={classes.fab}>
<FavoriteIcon />
</Fab>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/OpenIconSpeedDial.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';
import EditIcon from '@material-ui/icons/Edit';

const useStyles = makeStyles(theme => ({
Expand All @@ -29,7 +29,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function OpenIconSpeedDial() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/OpenIconSpeedDial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';
import EditIcon from '@material-ui/icons/Edit';

const useStyles = makeStyles((theme: Theme) =>
Expand All @@ -31,7 +31,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function OpenIconSpeedDial() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/SpeedDialTooltipOpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles(theme => ({
root: {
Expand All @@ -29,7 +29,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function SpeedDialTooltipOpen() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/SpeedDialTooltipOpen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
Expand All @@ -31,7 +31,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function SpeedDialTooltipOpen() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/SpeedDials.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles(theme => ({
root: {
Expand Down Expand Up @@ -45,7 +45,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function SpeedDials() {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/components/speed-dial/SpeedDials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import FileCopyIcon from '@material-ui/icons/FileCopyOutlined';
import SaveIcon from '@material-ui/icons/Save';
import PrintIcon from '@material-ui/icons/Print';
import ShareIcon from '@material-ui/icons/Share';
import DeleteIcon from '@material-ui/icons/Delete';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
Expand Down Expand Up @@ -47,7 +47,7 @@ const actions = [
{ icon: <SaveIcon />, name: 'Save' },
{ icon: <PrintIcon />, name: 'Print' },
{ icon: <ShareIcon />, name: 'Share' },
{ icon: <DeleteIcon />, name: 'Delete' },
{ icon: <FavoriteIcon />, name: 'Like' },
];

export default function SpeedDials() {
Expand Down

0 comments on commit 087becb

Please sign in to comment.