Fix console errors (#10859)
Fixes https://github.com/twentyhq/core-team-issues/issues/276 ## Before   ## After 
This commit is contained in:
@ -83,7 +83,7 @@ const StyledClickableZone = styled.div`
|
||||
justify-content: flex-end;
|
||||
`;
|
||||
|
||||
const MotionIconChevronDown = motion(IconChevronDown);
|
||||
const MotionIconChevronDown = motion.create(IconChevronDown);
|
||||
|
||||
type RecordDetailRelationRecordsListItemProps = {
|
||||
isExpanded: boolean;
|
||||
|
||||
@ -28,7 +28,7 @@ const StyledTable = styled.table`
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
||||
.footer-sticky tr:nth-last-child(2) td {
|
||||
.footer-sticky tr:nth-last-of-type(2) td {
|
||||
border-bottom-color: ${({ theme }) => theme.background.transparent};
|
||||
}
|
||||
`;
|
||||
|
||||
@ -15,7 +15,7 @@ type RecordTableDraggableTrProps = {
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
const StyledAbsoluteInViewContainer = styled.div`
|
||||
const StyledAbsoluteInViewContainer = styled.td`
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
@ -43,6 +43,7 @@ const AnimatedIcon = ({
|
||||
cx={12}
|
||||
cy={12}
|
||||
r="1"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{
|
||||
scale: isCommandMenuOpened ? 0 : 1,
|
||||
opacity: isCommandMenuOpened ? 0 : 1,
|
||||
@ -55,7 +56,7 @@ const AnimatedIcon = ({
|
||||
<motion.path
|
||||
key={index}
|
||||
d={path}
|
||||
initial={{ pathLength: 0 }}
|
||||
initial={{ pathLength: 0, opacity: 0 }}
|
||||
animate={{
|
||||
pathLength: isCommandMenuOpened ? 1 : 0,
|
||||
opacity: isCommandMenuOpened ? 1 : 0,
|
||||
@ -73,6 +74,7 @@ const AnimatedIcon = ({
|
||||
cx="12"
|
||||
cy="5"
|
||||
r="1"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{
|
||||
scale: isCommandMenuOpened ? 0 : 1,
|
||||
opacity: isCommandMenuOpened ? 0 : 1,
|
||||
@ -85,6 +87,7 @@ const AnimatedIcon = ({
|
||||
cx="12"
|
||||
cy="19"
|
||||
r="1"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{
|
||||
scale: isCommandMenuOpened ? 0 : 1,
|
||||
opacity: isCommandMenuOpened ? 0 : 1,
|
||||
|
||||
@ -20,7 +20,7 @@ const StyledButton = styled(motion.button)`
|
||||
cursor: pointer;
|
||||
`;
|
||||
|
||||
const MotionIconChevronDown = motion(IconChevronDown);
|
||||
const MotionIconChevronDown = motion.create(IconChevronDown);
|
||||
|
||||
export const JsonArrow = ({
|
||||
isOpen,
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import React from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledCommandTextContainer = styled.div`
|
||||
@ -47,10 +48,10 @@ export const MenuItemCommandHotKeys = ({
|
||||
{hotKeys && (
|
||||
<StyledCommandTextContainer>
|
||||
{hotKeys.map((hotKey, index) => (
|
||||
<>
|
||||
<StyledCommandKey key={index}>{hotKey}</StyledCommandKey>
|
||||
<React.Fragment key={index}>
|
||||
<StyledCommandKey>{hotKey}</StyledCommandKey>
|
||||
{index < hotKeys.length - 1 && joinLabel}
|
||||
</>
|
||||
</React.Fragment>
|
||||
))}
|
||||
</StyledCommandTextContainer>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user