handle ssh tunnel error

This commit is contained in:
Jan Prochazka
2021-02-13 12:46:37 +01:00
parent 0d1a6e96f3
commit 521199ee1a
4 changed files with 68 additions and 15 deletions

View File

@@ -52,3 +52,33 @@ export function FormFieldTemplateTiny({ label, children, type }) {
</FormRowTiny>
);
}
export const FormRowLarge = styled.div`
margin: 5px;
`;
export const FormLabelLarge = styled.div`
color: ${props => props.theme.manager_font3};
`;
export const FormValueLarge = styled.div`
margin-left: 15px;
margin-top: 3px;
`;
export function FormFieldTemplateLarge({ label, children, type }) {
const theme = useTheme();
if (type == 'checkbox') {
return (
<FormRowTiny>
{children} {label}
</FormRowTiny>
);
}
return (
<FormRowTiny>
<FormLabelTiny theme={theme}>{label}</FormLabelTiny>
<FormValueTiny>{children}</FormValueTiny>
</FormRowTiny>
);
}