Add 's' method to access theme props (#5163)

This commit is contained in:
Tom Moor
2023-04-07 22:43:34 -04:00
committed by GitHub
parent c202198d61
commit 422bdc32d9
116 changed files with 482 additions and 388 deletions

View File

@@ -1,6 +1,7 @@
import * as React from "react";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
import { s } from "@shared/styles";
import Flex from "~/components/Flex";
import InputSearch from "~/components/InputSearch";
import Key from "~/components/Key";
@@ -450,7 +451,7 @@ const Keys = styled.dt`
clear: left;
text-align: right;
font-size: 12px;
color: ${(props) => props.theme.textSecondary};
color: ${s("textSecondary")};
display: flex;
align-items: center;
justify-content: flex-end;
@@ -462,7 +463,7 @@ const Label = styled.dd`
margin: 0 0 10px;
display: flex;
align-items: center;
color: ${(props) => props.theme.textSecondary};
color: ${s("textSecondary")};
`;
export default React.memo(KeyboardShortcuts);