Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/leadin/scripts/shared/UICompon...
File: UIAlert.tsx
import React from 'react';
[0] Fix | Delete
import { styled } from '@linaria/react';
[1] Fix | Delete
import { MARIGOLD_LIGHT, MARIGOLD_MEDIUM, OBSIDIAN } from './colors';
[2] Fix | Delete
[3] Fix | Delete
const AlertContainer = styled.div`
[4] Fix | Delete
background-color: ${MARIGOLD_LIGHT};
[5] Fix | Delete
border-color: ${MARIGOLD_MEDIUM};
[6] Fix | Delete
color: ${OBSIDIAN};
[7] Fix | Delete
font-size: 14px;
[8] Fix | Delete
align-items: center;
[9] Fix | Delete
justify-content: space-between;
[10] Fix | Delete
display: flex;
[11] Fix | Delete
border-style: solid;
[12] Fix | Delete
border-top-style: solid;
[13] Fix | Delete
border-right-style: solid;
[14] Fix | Delete
border-bottom-style: solid;
[15] Fix | Delete
border-left-style: solid;
[16] Fix | Delete
border-width: 1px;
[17] Fix | Delete
min-height: 60px;
[18] Fix | Delete
padding: 8px 20px;
[19] Fix | Delete
position: relative;
[20] Fix | Delete
text-align: left;
[21] Fix | Delete
`;
[22] Fix | Delete
[23] Fix | Delete
const Title = styled.p`
[24] Fix | Delete
font-family: 'Lexend Deca';
[25] Fix | Delete
font-style: normal;
[26] Fix | Delete
font-weight: 700;
[27] Fix | Delete
font-size: 16px;
[28] Fix | Delete
line-height: 19px;
[29] Fix | Delete
color: ${OBSIDIAN};
[30] Fix | Delete
margin: 0;
[31] Fix | Delete
padding: 0;
[32] Fix | Delete
`;
[33] Fix | Delete
[34] Fix | Delete
const Message = styled.p`
[35] Fix | Delete
font-family: 'Lexend Deca';
[36] Fix | Delete
font-style: normal;
[37] Fix | Delete
font-weight: 400;
[38] Fix | Delete
font-size: 14px;
[39] Fix | Delete
margin: 0;
[40] Fix | Delete
padding: 0;
[41] Fix | Delete
`;
[42] Fix | Delete
[43] Fix | Delete
const MessageContainer = styled.div`
[44] Fix | Delete
display: flex;
[45] Fix | Delete
flex-direction: column;
[46] Fix | Delete
`;
[47] Fix | Delete
[48] Fix | Delete
interface IUIAlertProps {
[49] Fix | Delete
titleText: string;
[50] Fix | Delete
titleMessage: string;
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
export default function UIAlert({
[54] Fix | Delete
titleText,
[55] Fix | Delete
titleMessage,
[56] Fix | Delete
children,
[57] Fix | Delete
}: React.PropsWithChildren<IUIAlertProps>) {
[58] Fix | Delete
return (
[59] Fix | Delete
<AlertContainer>
[60] Fix | Delete
<MessageContainer>
[61] Fix | Delete
<Title>{titleText}</Title>
[62] Fix | Delete
<Message>{titleMessage}</Message>
[63] Fix | Delete
</MessageContainer>
[64] Fix | Delete
{children}
[65] Fix | Delete
</AlertContainer>
[66] Fix | Delete
);
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function