mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 22:26:01 +00:00
fixes + UX
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import styled from 'styled-components';
|
||||
import { FontIcon } from '../icons';
|
||||
|
||||
const Container = styled.div`
|
||||
display: flex;
|
||||
@@ -11,14 +12,13 @@ const Container = styled.div`
|
||||
const Icon = styled.div`
|
||||
font-size: 20pt;
|
||||
margin: 10px;
|
||||
color: red;
|
||||
`;
|
||||
|
||||
export default function ErrorInfo({ message }) {
|
||||
export default function ErrorInfo({ message, icon = 'fas fa-times-circle red' }) {
|
||||
return (
|
||||
<Container>
|
||||
<Icon>
|
||||
<i className="fas fa-times-circle" />
|
||||
<FontIcon icon={icon} />
|
||||
</Icon>
|
||||
{message}
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user