mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-18 22:12:46 +00:00
fix(warn): update prop name
This commit is contained in:
1 parent
edc54c7120
commit
b60b473e02
1 file changed
+4
-4
@@ -100,7 +100,7 @@ const StyledContainer = styled.div`
|
|||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
transition: visibility 0.3s, opacity 0.3s;
|
transition: visibility 0.3s, opacity 0.3s;
|
||||||
`;
|
`;
|
||||||
const FloatingButton = styled.div<{ bgColor: string }>`
|
const FloatingButton = styled.div<{ bgcolor: string }>`
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 500;
|
z-index: 500;
|
||||||
@@ -111,7 +111,7 @@ const FloatingButton = styled.div<{ bgColor: string }>`
|
|||||||
width: 5rem;
|
width: 5rem;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
background: ${props => props.bgColor};
|
background: ${props => props.bgcolor};
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -431,10 +431,10 @@ export const DocsGPTWidget = ({
|
|||||||
setOpen(false)
|
setOpen(false)
|
||||||
}} />
|
}} />
|
||||||
}
|
}
|
||||||
<FloatingButton bgColor={buttonBg} onClick={() => setOpen(!open)} hidden={open}>
|
<FloatingButton bgcolor={buttonBg} onClick={() => setOpen(!open)} hidden={open}>
|
||||||
<img style={{ maxHeight: '4rem', maxWidth: '4rem' }} src={buttonIcon} />
|
<img style={{ maxHeight: '4rem', maxWidth: '4rem' }} src={buttonIcon} />
|
||||||
</FloatingButton>
|
</FloatingButton>
|
||||||
<WidgetContainer modal={size === 'large'}>
|
<WidgetContainer modal={size == 'large'}>
|
||||||
<GlobalStyles />
|
<GlobalStyles />
|
||||||
{open && <StyledContainer>
|
{open && <StyledContainer>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in new issue
Block a user