Add 's' method to access theme props (#5163)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import styled from "styled-components";
|
||||
import { s } from "@shared/styles";
|
||||
|
||||
type Props = { active?: boolean; disabled?: boolean };
|
||||
|
||||
@@ -18,7 +19,7 @@ export default styled.button.attrs((props) => ({
|
||||
outline: none;
|
||||
pointer-events: all;
|
||||
position: relative;
|
||||
color: ${(props) => props.theme.toolbarItem};
|
||||
color: ${s("toolbarItem")};
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
|
||||
Reference in New Issue
Block a user