Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
635eed6e
Commit
635eed6e
authored
Dec 19, 2023
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move submit app button
parent
43637f9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
26 deletions
+13
-26
index.tsx
pages/apps/index.tsx
+12
-1
Marketplace.tsx
ui/pages/Marketplace.tsx
+1
-25
No files found.
pages/apps/index.tsx
View file @
635eed6e
...
@@ -4,15 +4,26 @@ import React from 'react';
...
@@ -4,15 +4,26 @@ import React from 'react';
import
PageNextJs
from
'
nextjs/PageNextJs
'
;
import
PageNextJs
from
'
nextjs/PageNextJs
'
;
import
config
from
'
configs/app
'
;
import
LinkExternal
from
'
ui/shared/LinkExternal
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
const
feature
=
config
.
features
.
marketplace
;
const
Marketplace
=
dynamic
(()
=>
import
(
'
ui/pages/Marketplace
'
),
{
ssr
:
false
});
const
Marketplace
=
dynamic
(()
=>
import
(
'
ui/pages/Marketplace
'
),
{
ssr
:
false
});
const
Page
:
NextPage
=
()
=>
{
const
Page
:
NextPage
=
()
=>
{
return
(
return
(
<
PageNextJs
pathname=
"/apps"
>
<
PageNextJs
pathname=
"/apps"
>
<>
<>
<
PageTitle
title=
"DAppscout"
/>
<
PageTitle
title=
"DAppscout"
contentAfter=
{
feature
.
isEnabled
&&
(
<
LinkExternal
href=
{
feature
.
submitFormUrl
}
variant=
"subtle"
fontSize=
"sm"
lineHeight=
{
5
}
ml=
"auto"
>
Submit app
</
LinkExternal
>
)
}
/>
<
Marketplace
/>
<
Marketplace
/>
</>
</>
</
PageNextJs
>
</
PageNextJs
>
...
...
ui/pages/Marketplace.tsx
View file @
635eed6e
import
{
Box
,
Icon
,
Link
,
Skeleton
}
from
'
@chakra-ui/react
'
;
import
{
Box
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
PlusIcon
from
'
icons/plus.svg
'
;
import
MarketplaceAppModal
from
'
ui/marketplace/MarketplaceAppModal
'
;
import
MarketplaceAppModal
from
'
ui/marketplace/MarketplaceAppModal
'
;
import
MarketplaceCategoriesMenu
from
'
ui/marketplace/MarketplaceCategoriesMenu
'
;
import
MarketplaceCategoriesMenu
from
'
ui/marketplace/MarketplaceCategoriesMenu
'
;
import
MarketplaceDisclaimerModal
from
'
ui/marketplace/MarketplaceDisclaimerModal
'
;
import
MarketplaceDisclaimerModal
from
'
ui/marketplace/MarketplaceDisclaimerModal
'
;
...
@@ -91,29 +90,6 @@ const Marketplace = () => {
...
@@ -91,29 +90,6 @@ const Marketplace = () => {
appId=
{
selectedApp
.
id
}
appId=
{
selectedApp
.
id
}
/>
/>
)
}
)
}
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
marginTop=
{
{
base
:
8
,
sm
:
16
}
}
display=
"inline-block"
>
<
Link
fontWeight=
"bold"
display=
"inline-flex"
alignItems=
"baseline"
href=
{
feature
.
submitFormUrl
}
isExternal
>
<
Icon
as=
{
PlusIcon
}
w=
{
3
}
h=
{
3
}
mr=
{
2
}
/>
Submit an app
</
Link
>
</
Skeleton
>
</>
</>
);
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment