Skip to content

Commit

Permalink
Merge pull request #25 from alonkeyval/gen-1341-delete-old-setup=files
Browse files Browse the repository at this point in the history
[GEN-1341] chore: delete old setup files
  • Loading branch information
alonkeyval authored Sep 3, 2024
2 parents 26ccfce + ed21ccf commit 7f17035
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 153 deletions.
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>
);
}
File renamed without changes.
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

0 comments on commit 7f17035

Please sign in to comment.