Skip to content

Commit 975dda9

Browse files
authored
chore(discover): remove unused code + labels adjustments (#7082)
* remove unused code + labels adjustments * fix typecheck
1 parent 96deb5f commit 975dda9

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

packages/app/src/app/pages/Dashboard/Content/routes/Discover/contants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ export const FEATURED_SANDBOXES_ALBUM = 'i1pxky';
22
export const TRENDING_SANDBOXES_ALBUM = 'nynbnp';
33

44
export const banner = {
5-
label: 'NEW FEATURE',
6-
title: 'Welcome Discover Page',
5+
title: 'Discover Page',
76
subtitle: 'Search sandboxes from the community right on your dashboard',
87
image: '/static/img/discover-banner-search.png',
98
link: 'https://codesandbox.io/post/discover-announcement',

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,13 @@ export const Discover = () => {
113113
<Banner />
114114

115115
<Stack direction="vertical" gap={16}>
116-
{/* <FeaturedSandboxes /> */}
117-
118116
{randomAlbums.map(album => (
119117
<Album
120118
key={album.id}
121119
album={album}
122120
showMore={album.sandboxes.length > 3}
123121
/>
124122
))}
125-
126123
<TrendingSandboxes />
127124
</Stack>
128125
</Element>
@@ -154,7 +151,6 @@ const Banner = () => (
154151
})}
155152
>
156153
<Stack direction="vertical" marginLeft={6} css={{ zIndex: 2 }}>
157-
<Text size={3}>{banner.label}</Text>
158154
<Text size={32} weight="regular" marginTop={2}>
159155
{banner.title}
160156
</Text>
@@ -176,32 +172,6 @@ const Banner = () => (
176172
</Stack>
177173
);
178174

179-
// const FeaturedSandboxes = () => {
180-
// const {
181-
// dashboard: { curatedAlbums },
182-
// } = useAppState();
183-
184-
// const featuredSandboxesAlbum = curatedAlbums.find(
185-
// album => album.id === FEATURED_SANDBOXES_ALBUM
186-
// );
187-
188-
// return (
189-
// <Grid
190-
// rowGap={6}
191-
// columnGap={6}
192-
// css={{
193-
// gridTemplateColumns: 'repeat(auto-fit, minmax(300px, 1fr))',
194-
// height: 'max(60vh, 528px)',
195-
// overflow: 'hidden',
196-
// }}
197-
// >
198-
// {featuredSandboxesAlbum?.sandboxes.slice(0, 3).map(sandbox => (
199-
// <FeaturedSandbox key={sandbox.id} sandbox={sandbox} />
200-
// ))}
201-
// </Grid>
202-
// );
203-
// };
204-
205175
export const FeaturedSandbox = ({ sandbox }) => {
206176
const {
207177
dashboard: { sandboxes },

0 commit comments

Comments
 (0)