Skip to content

Commit 1262f22

Browse files
committed
add filter icon
1 parent aedaf3d commit 1262f22

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/pages/display/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,13 @@ export default class Display extends Component {
833833
<Button onClick={() => this.setState({
834834
filter: !this.state.filter
835835
})}>
836-
<Primary>
837-
filter
838-
</Primary>
836+
<div className={styles.filter}>
837+
<Primary>
838+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.02 63.39">
839+
<path d="M61.61,2.53A3.23,3.23,0,0,0,58.78.87H3.23A3.23,3.23,0,0,0,.49,5.81L21.86,35V64.26l18.31-6.79V35L61.45,5.93l.08-.12A3.24,3.24,0,0,0,61.61,2.53ZM36.16,33.68v21l-10.3,3.83V33.68L4.75,4.87H57.27Z" transform="translate(0 -0.87)"/>
840+
</svg>
841+
</Primary>
842+
</div>
839843
</Button>
840844
</div>
841845
</Padding>

src/pages/display/styles.module.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
}
2828

2929
.container {
30-
position: relative;
3130
.number {
3231
position: absolute;
3332
bottom: 6px;
@@ -40,6 +39,15 @@
4039
}
4140
}
4241

42+
.filter {
43+
position: relative;
44+
top: 2px;
45+
left: -2px;
46+
width: 20px;
47+
height: 20px;
48+
fill: var(--text-color);
49+
}
50+
4351
.card {
4452
position: absolute;
4553
left: 0;

0 commit comments

Comments
 (0)