Fix website build

This commit is contained in:
Charles Bochet
2024-02-25 22:38:12 +01:00
parent 176d0159ab
commit fa9edad311
3 changed files with 6 additions and 6 deletions

View File

@ -9,6 +9,7 @@ COPY ./.prettierrc .
COPY ./yarn.lock .
COPY ./.yarnrc.yml .
COPY ./.yarn/releases /app/.yarn/releases
COPY ./tools/eslint-rules /app/tools/eslint-rules
COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package.json
RUN yarn

View File

@ -4,7 +4,7 @@ import styled from '@emotion/styled';
import mq from '@/app/_components/ui/theme/mq';
import { Theme } from '@/app/_components/ui/theme/theme';
import UserGuideCard from '@/app/_components/user-guide/UserGuideCard';
import { UserGuideHomeCards } from '@/content/user-guide/constants/UserGuideHomeCards';
import { USER_GUIDE_HOME_CARDS } from '@/content/user-guide/constants/UserGuideHomeCards';
const StyledContainer = styled.div`
${mq({
@ -68,7 +68,7 @@ export default function UserGuideMain() {
</StyledSubHeading>
</StyledHeader>
<StyledContent>
{UserGuideHomeCards.map((card) => {
{USER_GUIDE_HOME_CARDS.map((card) => {
return <UserGuideCard key={card.title} card={card} />;
})}
</StyledContent>

View File

@ -7,7 +7,7 @@ import { IconBook } from '@/app/_components/ui/icons';
import mq from '@/app/_components/ui/theme/mq';
import { Theme } from '@/app/_components/ui/theme/theme';
import UserGuideSidebarSection from '@/app/_components/user-guide/UserGuideSidebarSection';
import { UserGuideIndex } from '@/content/user-guide/constants/UserGuideIndex';
import { USER_GUIDE_INDEX } from '@/content/user-guide/constants/UserGuideIndex';
const StyledContainer = styled.div`
${mq({
@ -42,8 +42,7 @@ const StyledIconContainer = styled.div`
color: ${Theme.text.color.secondary};
border: 1px solid ${Theme.text.color.secondary};
border-radius: ${Theme.border.radius.sm};
padding: ${Theme.spacing(1)} ${Theme.spacing(1)} ${Theme.spacing(1)}
${Theme.spacing(1)};
padding: ${Theme.spacing(1)};
`;
const StyledHeadingText = styled.div`
@ -64,7 +63,7 @@ const UserGuideSidebar = () => {
User Guide
</StyledHeadingText>
</StyledHeading>
{Object.entries(UserGuideIndex).map(([heading, subtopics]) => (
{Object.entries(USER_GUIDE_INDEX).map(([heading, subtopics]) => (
<UserGuideSidebarSection
key={heading}
title={heading}