* Setup, and security settings * Settings -> Details * Settings -> Notifications * Profile * lint * fix: Flash of loading on members screen * align language input * feat: Move share links management to sortable table * Add account menu to sidebar on settings page * Aesthetic tweaks, light borders between settings and slight column offset
33 lines
772 B
TypeScript
33 lines
772 B
TypeScript
import styled from "styled-components";
|
|
|
|
type Props = {
|
|
type?: "secondary" | "tertiary";
|
|
size?: "large" | "small" | "xsmall";
|
|
};
|
|
|
|
/**
|
|
* Use this component for all interface text that should not be selectable
|
|
* by the user, this is the majority of UI text explainers, notes, headings.
|
|
*/
|
|
const Text = styled.p<Props>`
|
|
margin-top: 0;
|
|
color: ${(props) =>
|
|
props.type === "secondary"
|
|
? props.theme.textSecondary
|
|
: props.type === "tertiary"
|
|
? props.theme.textTertiary
|
|
: props.theme.text};
|
|
font-size: ${(props) =>
|
|
props.size === "large"
|
|
? "18px"
|
|
: props.size === "small"
|
|
? "14px"
|
|
: props.size === "xsmall"
|
|
? "13px"
|
|
: "inherit"};
|
|
white-space: normal;
|
|
user-select: none;
|
|
`;
|
|
|
|
export default Text;
|