Skip to content

Commit 33e9699

Browse files
authored
chore: remove import repo from synced sandboxes (#6960)
1 parent c7f291d commit 33e9699

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

packages/app/src/app/pages/Dashboard/Components/VariableGrid/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import AutoSizer from 'react-virtualized-auto-sizer';
88
import { Sandbox, SkeletonSandbox } from '../Sandbox';
99
import { NewSandbox } from '../Sandbox/NewSandbox';
1010
import { NewMasterSandbox } from '../Sandbox/NewMasterSandbox';
11-
import { ImportRepo } from '../Repo/ImportRepo';
1211
import { Folder } from '../Folder';
1312
import { Repo } from '../Repo';
1413
import { CommunitySandbox } from '../CommunitySandbox';
@@ -25,7 +24,6 @@ import {
2524
DashboardSkeleton,
2625
DashboardNewFolder,
2726
DashboardRepo,
28-
DashboardNewRepo,
2927
DashboardNewMasterBranch,
3028
DashboardCommunitySandbox,
3129
DashboardBranch,
@@ -72,7 +70,6 @@ interface IComponentForTypes {
7270
repo: React.FC<DecoratedItemProps<DashboardRepo>>;
7371
'new-folder': React.FC<DecoratedItemProps<DashboardNewFolder>>;
7472
'new-sandbox': React.FC<DecoratedItemProps<DashboardNewSandbox>>;
75-
'new-repo': React.FC<DecoratedItemProps<DashboardNewRepo>>;
7673
'new-master-branch': React.FC<DecoratedItemProps<DashboardNewMasterBranch>>;
7774
header: React.FC<DecoratedItemProps<DashboardHeader>>;
7875
'header-link': React.FC<DecoratedItemProps<DashboardHeaderLink>>;
@@ -103,7 +100,6 @@ const ComponentForTypes: IComponentForTypes = {
103100
repo: props => <Repo {...props.item} isScrolling={props.isScrolling} />,
104101
'new-folder': props => <CreateFolder {...props.item} />,
105102
'new-sandbox': () => <NewSandbox />,
106-
'new-repo': () => <ImportRepo />,
107103
'new-master-branch': props => <NewMasterSandbox {...props.item} />,
108104
header: ({ item }) => (
109105
<Stack justify="space-between" align="center">

packages/app/src/app/pages/Dashboard/Content/routes/SyncedSandboxes/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const SyncedSandboxesPage = () => {
2121
const actions = useActions();
2222
const {
2323
activeTeam,
24-
dashboard: { sandboxes, viewMode },
24+
dashboard: { sandboxes },
2525
} = useAppState();
2626

2727
React.useEffect(() => {
@@ -38,9 +38,7 @@ export const SyncedSandboxesPage = () => {
3838
}
3939

4040
if (home) {
41-
return viewMode === 'grid' && items.length
42-
? [{ type: 'new-repo' }, ...items]
43-
: items;
41+
return items;
4442
}
4543

4644
if (sandboxes.REPOS[param] && sandboxes.REPOS[param].sandboxes) {

packages/app/src/app/pages/Dashboard/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ export type DashboardNewSandbox = {
8383
type: 'new-sandbox';
8484
};
8585

86-
export type DashboardNewRepo = {
87-
type: 'new-repo';
88-
};
89-
9086
export type DashboardSkeletonRow = {
9187
type: 'skeleton-row';
9288
};
@@ -162,7 +158,6 @@ export type DashboardGridItem =
162158
| DashboardHeaderLink
163159
| DashboardNewFolder
164160
| DashboardNewSandbox
165-
| DashboardNewRepo
166161
| DashboardSkeletonRow
167162
| DashboardNewMasterBranch
168163
| DashboardBlank

0 commit comments

Comments
 (0)