Skip to content

Commit b21c4f3

Browse files
halitoguncSaraVieira
authored andcommitted
Change console clear icon (codesandbox#1994)
1 parent 1bace11 commit b21c4f3

File tree

1 file changed

+7
-2
lines changed
  • packages/app/src/app/components/Preview/DevTools/Console

1 file changed

+7
-2
lines changed

packages/app/src/app/components/Preview/DevTools/Console/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { listen, dispatch } from 'codesandbox-api';
33
import { withTheme } from 'styled-components';
44
import { debounce } from 'lodash-es';
55
import update from 'immutability-helper';
6+
import styled from 'styled-components';
67

7-
import ClearIcon from 'react-icons/lib/md/clear-all';
8+
import ClearIcon from 'react-icons/lib/md/block';
89
import { Decode, Console as ConsoleFeed } from 'console-feed';
910

1011
import Select from '@codesandbox/common/lib/components/Select';
@@ -24,6 +25,10 @@ export type StyledProps = DevToolProps & {
2425
theme: typeof theme & { light: boolean };
2526
};
2627

28+
const StyledClearIcon = styled(ClearIcon)`
29+
font-size: 0.8em;
30+
`;
31+
2732
class Console extends React.Component<StyledProps> {
2833
state = {
2934
messages: [],
@@ -283,7 +288,7 @@ export default {
283288
onClick: () => {
284289
dispatch({ type: 'clear-console' });
285290
},
286-
Icon: ClearIcon,
291+
Icon: StyledClearIcon,
287292
},
288293
{
289294
title: 'Search',

0 commit comments

Comments
 (0)