mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
handle macro errors
This commit is contained in:
@@ -14,7 +14,20 @@ const Icon = styled.div`
|
||||
margin: 10px;
|
||||
`;
|
||||
|
||||
export default function ErrorInfo({ message, icon = 'fas fa-times-circle red' }) {
|
||||
const ContainerSmall = styled.div`
|
||||
display: flex;
|
||||
margin-right: 10px;
|
||||
`;
|
||||
|
||||
export default function ErrorInfo({ message, icon = 'fas fa-times-circle red', isSmall = false }) {
|
||||
if (isSmall) {
|
||||
return (
|
||||
<ContainerSmall>
|
||||
<FontIcon icon={icon} />
|
||||
{message}
|
||||
</ContainerSmall>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Container>
|
||||
<Icon>
|
||||
|
||||
Reference in New Issue
Block a user