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
93704b0b
Commit
93704b0b
authored
Sep 07, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simple page
parent
f28efafa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
index.tsx
pages/[network_type]/[network_sub_type]/tx/[id]/index.tsx
+40
-0
Transaction.tsx
ui/pages/Transaction.tsx
+15
-0
No files found.
pages/[network_type]/[network_sub_type]/tx/[id]/index.tsx
0 → 100644
View file @
93704b0b
import
type
{
NextPage
,
GetStaticPaths
,
GetStaticProps
,
GetStaticPropsResult
}
from
'
next
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
getNetworkTitle
from
'
lib/networks/getNetworkTitle
'
;
import
Transaction
from
'
ui/pages/Transaction
'
;
type
PageParams
=
{
network_type
:
string
;
network_sub_type
:
string
;
id
:
string
;
}
type
Props
=
{
pageParams
:
PageParams
;
}
const
TransactionPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
||
{});
return
(
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Transaction
/>
</>
);
};
export
default
TransactionPage
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
[],
fallback
:
true
};
};
export
const
getStaticProps
:
GetStaticProps
=
async
(
context
):
Promise
<
GetStaticPropsResult
<
Props
>>
=>
{
return
{
props
:
{
pageParams
:
context
.
params
as
PageParams
,
},
};
};
ui/pages/Transaction.tsx
0 → 100644
View file @
93704b0b
import
React
from
'
react
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
Page
from
'
ui/shared/Page
'
;
const
TransactionPageContent
=
()
=>
{
return
(
<
Page
>
<
AccountPageHeader
text=
"Transaction details"
/>
FOO BAR
</
Page
>
);
};
export
default
TransactionPageContent
;
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