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
05598530
Commit
05598530
authored
Sep 26, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename PageHeader into PageTitle
parent
425a0225
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
25 deletions
+23
-25
apps.tsx
pages/[network_type]/[network_sub_type]/apps.tsx
+2
-2
index.tsx
pages/[network_type]/[network_sub_type]/index.tsx
+2
-2
ProfileMenuDesktop.tsx
ui/blocks/profileMenu/ProfileMenuDesktop.tsx
+1
-1
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+2
-2
CustomAbi.tsx
ui/pages/CustomAbi.tsx
+2
-2
MyProfile.tsx
ui/pages/MyProfile.tsx
+2
-2
PrivateTags.tsx
ui/pages/PrivateTags.tsx
+4
-6
PublicTags.tsx
ui/pages/PublicTags.tsx
+2
-2
Transaction.tsx
ui/pages/Transaction.tsx
+2
-2
Watchlist.tsx
ui/pages/Watchlist.tsx
+2
-2
PageTitle.tsx
ui/shared/PageTitle.tsx
+2
-2
No files found.
pages/[network_type]/[network_sub_type]/apps.tsx
View file @
05598530
...
@@ -3,12 +3,12 @@ import React from 'react';
...
@@ -3,12 +3,12 @@ import React from 'react';
import
Apps
from
'
ui/pages/Apps
'
;
import
Apps
from
'
ui/pages/Apps
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
const
AppsPage
=
()
=>
{
const
AppsPage
=
()
=>
{
return
(
return
(
<
Page
>
<
Page
>
<
Page
Header
text=
"Apps"
/>
<
Page
Title
text=
"Apps"
/>
<
Head
><
title
>
Apps
</
title
></
Head
>
<
Head
><
title
>
Apps
</
title
></
Head
>
<
Apps
/>
<
Apps
/>
...
...
pages/[network_type]/[network_sub_type]/index.tsx
View file @
05598530
...
@@ -9,7 +9,7 @@ import useNetwork from 'lib/hooks/useNetwork';
...
@@ -9,7 +9,7 @@ import useNetwork from 'lib/hooks/useNetwork';
import
useToast
from
'
lib/hooks/useToast
'
;
import
useToast
from
'
lib/hooks/useToast
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
const
Home
:
NextPage
=
()
=>
{
const
Home
:
NextPage
=
()
=>
{
const
router
=
useRouter
();
const
router
=
useRouter
();
...
@@ -49,7 +49,7 @@ const Home: NextPage = () => {
...
@@ -49,7 +49,7 @@ const Home: NextPage = () => {
return
(
return
(
<
Page
>
<
Page
>
<
VStack
gap=
{
4
}
alignItems=
"flex-start"
maxW=
"800px"
>
<
VStack
gap=
{
4
}
alignItems=
"flex-start"
maxW=
"800px"
>
<
Page
Header
text=
{
<
Page
Title
text=
{
`Home Page for ${ selectedNetwork?.name } network`
`Home Page for ${ selectedNetwork?.name } network`
}
/>
}
/>
{
/* will be deleted when we move to new CI */
}
{
/* will be deleted when we move to new CI */
}
...
...
ui/blocks/profileMenu/ProfileMenuDesktop.tsx
View file @
05598530
...
@@ -11,7 +11,7 @@ const ProfileMenuDesktop = () => {
...
@@ -11,7 +11,7 @@ const ProfileMenuDesktop = () => {
return
(
return
(
<
Popover
openDelay=
{
300
}
placement=
"bottom-end"
gutter=
{
10
}
isLazy
>
<
Popover
openDelay=
{
300
}
placement=
"bottom-end"
gutter=
{
10
}
isLazy
>
<
PopoverTrigger
>
<
PopoverTrigger
>
<
Button
variant=
"unstyled"
display=
"inline-flex"
height=
"auto"
>
<
Button
variant=
"unstyled"
display=
"inline-flex"
height=
"auto"
flexShrink=
{
0
}
>
<
UserAvatar
size=
{
50
}
data=
{
data
}
/>
<
UserAvatar
size=
{
50
}
data=
{
data
}
/>
</
Button
>
</
Button
>
</
PopoverTrigger
>
</
PopoverTrigger
>
...
...
ui/pages/ApiKeys.tsx
View file @
05598530
...
@@ -13,7 +13,7 @@ import ApiKeyTable from 'ui/apiKey/ApiKeyTable/ApiKeyTable';
...
@@ -13,7 +13,7 @@ import ApiKeyTable from 'ui/apiKey/ApiKeyTable/ApiKeyTable';
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
@@ -128,7 +128,7 @@ const ApiKeysPage: React.FC = () => {
...
@@ -128,7 +128,7 @@ const ApiKeysPage: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
Box
h=
"100%"
>
<
Page
Header
text=
"API keys"
/>
<
Page
Title
text=
"API keys"
/>
{
content
}
{
content
}
</
Box
>
</
Box
>
</
Page
>
</
Page
>
...
...
ui/pages/CustomAbi.tsx
View file @
05598530
...
@@ -12,7 +12,7 @@ import CustomAbiTable from 'ui/customAbi/CustomAbiTable/CustomAbiTable';
...
@@ -12,7 +12,7 @@ import CustomAbiTable from 'ui/customAbi/CustomAbiTable/CustomAbiTable';
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
...
@@ -116,7 +116,7 @@ const CustomAbiPage: React.FC = () => {
...
@@ -116,7 +116,7 @@ const CustomAbiPage: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
Box
h=
"100%"
>
<
Page
Header
text=
"Custom ABI"
/>
<
Page
Title
text=
"Custom ABI"
/>
{
content
}
{
content
}
</
Box
>
</
Box
>
</
Page
>
</
Page
>
...
...
ui/pages/MyProfile.tsx
View file @
05598530
...
@@ -5,7 +5,7 @@ import useFetchProfileInfo from 'lib/hooks/useFetchProfileInfo';
...
@@ -5,7 +5,7 @@ import useFetchProfileInfo from 'lib/hooks/useFetchProfileInfo';
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
UserAvatar
from
'
ui/shared/UserAvatar
'
;
import
UserAvatar
from
'
ui/shared/UserAvatar
'
;
const
MyProfile
=
()
=>
{
const
MyProfile
=
()
=>
{
...
@@ -56,7 +56,7 @@ const MyProfile = () => {
...
@@ -56,7 +56,7 @@ const MyProfile = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Page
Header
text=
"My profile"
/>
<
Page
Title
text=
"My profile"
/>
{
content
}
{
content
}
</
Page
>
</
Page
>
);
);
...
...
ui/pages/PrivateTags.tsx
View file @
05598530
import
{
Box
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
RoutedTab
}
from
'
ui/shared/RoutedTabs/types
'
;
import
type
{
RoutedTab
}
from
'
ui/shared/RoutedTabs/types
'
;
import
PrivateAddressTags
from
'
ui/privateTags/PrivateAddressTags
'
;
import
PrivateAddressTags
from
'
ui/privateTags/PrivateAddressTags
'
;
import
PrivateTransactionTags
from
'
ui/privateTags/PrivateTransactionTags
'
;
import
PrivateTransactionTags
from
'
ui/privateTags/PrivateTransactionTags
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
const
TABS
:
Array
<
RoutedTab
>
=
[
const
TABS
:
Array
<
RoutedTab
>
=
[
...
@@ -20,10 +20,8 @@ type Props = {
...
@@ -20,10 +20,8 @@ type Props = {
const
PrivateTags
=
({
tab
}:
Props
)
=>
{
const
PrivateTags
=
({
tab
}:
Props
)
=>
{
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
PageTitle
text=
"Private tags"
/>
<
PageHeader
text=
"Private tags"
/>
<
RoutedTabs
tabs=
{
TABS
}
defaultActiveTab=
{
tab
}
/>
<
RoutedTabs
tabs=
{
TABS
}
defaultActiveTab=
{
tab
}
/>
</
Box
>
</
Page
>
</
Page
>
);
);
};
};
...
...
ui/pages/PublicTags.tsx
View file @
05598530
...
@@ -10,7 +10,7 @@ import useToast from 'lib/hooks/useToast';
...
@@ -10,7 +10,7 @@ import useToast from 'lib/hooks/useToast';
import
PublicTagsData
from
'
ui/publicTags/PublicTagsData
'
;
import
PublicTagsData
from
'
ui/publicTags/PublicTagsData
'
;
import
PublicTagsForm
from
'
ui/publicTags/PublicTagsForm/PublicTagsForm
'
;
import
PublicTagsForm
from
'
ui/publicTags/PublicTagsForm/PublicTagsForm
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
type
TScreen
=
'
data
'
|
'
form
'
;
type
TScreen
=
'
data
'
|
'
form
'
;
...
@@ -84,7 +84,7 @@ const PublicTagsComponent: React.FC = () => {
...
@@ -84,7 +84,7 @@ const PublicTagsComponent: React.FC = () => {
<
Text
variant=
"inherit"
fontSize=
"sm"
ml=
{
2
}
>
Public tags
</
Text
>
<
Text
variant=
"inherit"
fontSize=
"sm"
ml=
{
2
}
>
Public tags
</
Text
>
</
Link
>
</
Link
>
)
}
)
}
<
Page
Header
text=
{
header
}
/>
<
Page
Title
text=
{
header
}
/>
{
content
}
{
content
}
</
Box
>
</
Box
>
</
Page
>
</
Page
>
...
...
ui/pages/Transaction.tsx
View file @
05598530
...
@@ -3,7 +3,7 @@ import React from 'react';
...
@@ -3,7 +3,7 @@ import React from 'react';
import
type
{
RoutedTab
}
from
'
ui/shared/RoutedTabs/types
'
;
import
type
{
RoutedTab
}
from
'
ui/shared/RoutedTabs/types
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
import
RoutedTabs
from
'
ui/shared/RoutedTabs/RoutedTabs
'
;
import
TxDetails
from
'
ui/tx/TxDetails
'
;
import
TxDetails
from
'
ui/tx/TxDetails
'
;
import
TxInternals
from
'
ui/tx/TxInternals
'
;
import
TxInternals
from
'
ui/tx/TxInternals
'
;
...
@@ -26,7 +26,7 @@ export interface Props {
...
@@ -26,7 +26,7 @@ export interface Props {
const
TransactionPageContent
=
({
tab
}:
Props
)
=>
{
const
TransactionPageContent
=
({
tab
}:
Props
)
=>
{
return
(
return
(
<
Page
>
<
Page
>
<
Page
Header
text=
"Transaction details"
/>
<
Page
Title
text=
"Transaction details"
/>
<
RoutedTabs
tabs=
{
TABS
}
defaultActiveTab=
{
tab
}
/>
<
RoutedTabs
tabs=
{
TABS
}
defaultActiveTab=
{
tab
}
/>
</
Page
>
</
Page
>
);
);
...
...
ui/pages/Watchlist.tsx
View file @
05598530
...
@@ -9,7 +9,7 @@ import useIsMobile from 'lib/hooks/useIsMobile';
...
@@ -9,7 +9,7 @@ import useIsMobile from 'lib/hooks/useIsMobile';
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
Header
from
'
ui/shared/PageHeader
'
;
import
Page
Title
from
'
ui/shared/PageTitle
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
AddressModal
from
'
ui/watchlist/AddressModal/AddressModal
'
;
import
AddressModal
from
'
ui/watchlist/AddressModal/AddressModal
'
;
...
@@ -113,7 +113,7 @@ const WatchList: React.FC = () => {
...
@@ -113,7 +113,7 @@ const WatchList: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
Box
h=
"100%"
>
<
Page
Header
text=
"Watch list"
/>
<
Page
Title
text=
"Watch list"
/>
{
content
}
{
content
}
</
Box
>
</
Box
>
</
Page
>
</
Page
>
...
...
ui/shared/Page
Header
.tsx
→
ui/shared/Page
Title
.tsx
View file @
05598530
import
{
Heading
}
from
'
@chakra-ui/react
'
;
import
{
Heading
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
const
Page
Header
=
({
text
}:
{
text
:
string
})
=>
{
const
Page
Title
=
({
text
}:
{
text
:
string
})
=>
{
return
(
return
(
<
Heading
as=
"h1"
size=
"lg"
marginBottom=
{
{
base
:
6
,
lg
:
8
}
}
>
{
text
}
</
Heading
>
<
Heading
as=
"h1"
size=
"lg"
marginBottom=
{
{
base
:
6
,
lg
:
8
}
}
>
{
text
}
</
Heading
>
);
);
};
};
export
default
Page
Header
;
export
default
Page
Title
;
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