Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEN-1341] chore: delete old setup files #25

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions frontend/webapp/app/(setup)/choose-destination/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
'use client';
import React from 'react';
import { StepsList } from '@/components';
import { ChooseDestinationContainer } from '@/containers';
import { CardWrapper, PageContainer, StepListWrapper } from '../styled';
import { SideMenu } from '@/components';
import { SideMenuWrapper } from '../styled';
import { ChooseDestinationContainer } from '@/containers/main';

export default function ChooseDestinationPage() {
return (
<PageContainer>
<StepListWrapper>
<StepsList currentStepIndex={1} />
</StepListWrapper>
<CardWrapper>
<ChooseDestinationContainer />
</CardWrapper>
</PageContainer>
<>
<SideMenuWrapper>
<SideMenu currentStep={3} />
</SideMenuWrapper>
<ChooseDestinationContainer />
</>
);
}
20 changes: 9 additions & 11 deletions frontend/webapp/app/(setup)/choose-sources/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
'use client';
import React from 'react';
import { StepsList } from '@/components';
import { ChooseSourcesContainer } from '@/containers';
import { CardWrapper, PageContainer, StepListWrapper } from '../styled';
import { SideMenu } from '@/components';
import { ChooseSourcesContainer } from '@/containers/main';
import { SideMenuWrapper } from '../styled';

export default function ChooseSourcesPage() {
return (
<PageContainer>
<StepListWrapper>
<StepsList currentStepIndex={0} />
</StepListWrapper>
<CardWrapper>
<ChooseSourcesContainer />
</CardWrapper>
</PageContainer>
<>
<SideMenuWrapper>
<SideMenu currentStep={2} />
</SideMenuWrapper>
<ChooseSourcesContainer />
</>
);
}
17 changes: 0 additions & 17 deletions frontend/webapp/app/(setup)/connect-destination/page.tsx

This file was deleted.

29 changes: 21 additions & 8 deletions frontend/webapp/app/(setup)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
'use client';
import React from 'react';
import Logo from '@/assets/logos/odigos-gradient.svg';
import { LogoWrapper, SetupPageContainer } from './styled';
import styled from 'styled-components';

const LayoutContainer = styled.div`
width: 100%;
height: 100vh;
background-color: ${({ theme }) => theme.colors.primary};
display: flex;
align-items: center;
flex-direction: column;
`;

const MainContent = styled.div`
display: flex;
max-width: 1440px;
width: 100vh;
flex-direction: column;
align-items: center;
`;

export default function SetupLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<SetupPageContainer>
<LogoWrapper>
<Logo />
</LogoWrapper>
{children}
</SetupPageContainer>
<LayoutContainer>
<MainContent>{children}</MainContent>
</LayoutContainer>
);
}
41 changes: 0 additions & 41 deletions frontend/webapp/app/(setup)/styled.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/webapp/app/setup/choose-destination/page.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/webapp/app/setup/choose-sources/page.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions frontend/webapp/app/setup/layout.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const MonitorsTapList: React.FC<MonitorButtonsProps> = ({
<MonitorButtonsContainer>
{MONITORS_OPTIONS.map((monitor) => (
<Tag
key={monitor.id}
id={monitor.id}
isSelected={selectedMonitors.includes(monitor.id)}
onClick={() => onMonitorSelect(monitor.id)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function ChooseSourcesContainer() {
dispatch(setSources(selectedItems));
dispatch(setNamespaceFutureSelectAppsList(futureAppsCheckbox));
}
router.push('/setup/choose-destination');
router.push('/choose-destination');
}

const toggleCheckboxState: ToggleCheckboxState = {
Expand Down
Loading