markdown manifest

This commit is contained in:
Jan Prochazka
2020-12-10 18:34:02 +01:00
parent d502dc0dfd
commit ac4aa94976
16 changed files with 187 additions and 74 deletions

View File

@@ -9,6 +9,7 @@ import moment from 'moment';
import styled from 'styled-components';
import getElectron from '../utility/getElectron';
import useTheme from '../theme/useTheme';
import { StyledThemedLink } from '../widgets/FormStyledButton';
const Container = styled.div`
display: flex;
@@ -24,15 +25,6 @@ const StyledValue = styled.span`
font-weight: bold;
`;
const StyledLink = styled.a`
text-decoration: none;
cursor: pointer;
color: ${(props) => props.theme.main_background_blue[7]};
&:hover {
text-decoration: underline;
}
`;
function Line({ label, children }) {
return (
<StyledLine>
@@ -48,13 +40,13 @@ function Link({ label, children, href }) {
<StyledLine>
{label}:{' '}
{electron ? (
<StyledLink theme={theme} onClick={() => electron.shell.openExternal(href)}>
<StyledThemedLink theme={theme} onClick={() => electron.shell.openExternal(href)}>
{children}
</StyledLink>
</StyledThemedLink>
) : (
<StyledLink theme={theme} href={href} target="_blank" rel="noopener noreferrer">
<StyledThemedLink theme={theme} href={href} target="_blank" rel="noopener noreferrer">
{children}
</StyledLink>
</StyledThemedLink>
)}
</StyledLine>
);