Added loader and counter animations (#4931)
Added loader animation: https://github.com/twentyhq/twenty/assets/102751374/c569762a-f512-4995-ac4d-47570bacdcaa Added counter animation: https://github.com/twentyhq/twenty/assets/102751374/7d96c625-b56a-4ef6-8042-8e71455caf67 Co-authored-by: Ady Beraud <a.beraud96@gmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -4,6 +4,7 @@ import { JSXElementConstructor, ReactElement } from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import { Gabarito } from 'next/font/google';
|
||||
|
||||
import MotionContainer from '@/app/_components/ui/layout/LoaderAnimation';
|
||||
import { Theme } from '@/app/_components/ui/theme/theme';
|
||||
import { ReleaseNote } from '@/app/releases/api/route';
|
||||
|
||||
@ -97,16 +98,18 @@ export const Release = ({
|
||||
mdxReleaseContent: ReactElement<any, string | JSXElementConstructor<any>>;
|
||||
}) => {
|
||||
return (
|
||||
<StyledContainer className={gabarito.className}>
|
||||
<StyledVersion>
|
||||
<StyledRelease>{release.release}</StyledRelease>
|
||||
<StyledDate>
|
||||
{release.date.endsWith(new Date().getFullYear().toString())
|
||||
? release.date.slice(0, -5)
|
||||
: release.date}
|
||||
</StyledDate>
|
||||
</StyledVersion>
|
||||
<StlyedContent>{mdxReleaseContent}</StlyedContent>
|
||||
</StyledContainer>
|
||||
<MotionContainer>
|
||||
<StyledContainer className={gabarito.className}>
|
||||
<StyledVersion>
|
||||
<StyledRelease>{release.release}</StyledRelease>
|
||||
<StyledDate>
|
||||
{release.date.endsWith(new Date().getFullYear().toString())
|
||||
? release.date.slice(0, -5)
|
||||
: release.date}
|
||||
</StyledDate>
|
||||
</StyledVersion>
|
||||
<StlyedContent>{mdxReleaseContent}</StlyedContent>
|
||||
</StyledContainer>
|
||||
</MotionContainer>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user