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
3afcdfae
Commit
3afcdfae
authored
Jun 02, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nav rename
parent
a84fd0f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AccountNav.tsx
components/AccountNav/AccountNav.tsx
+2
-2
Page.tsx
components/Page/Page.tsx
+2
-2
No files found.
components/
Nav/
Nav.tsx
→
components/
AccountNav/Account
Nav.tsx
View file @
3afcdfae
...
@@ -2,7 +2,7 @@ import React from 'react';
...
@@ -2,7 +2,7 @@ import React from 'react';
import
{
Flex
,
Link
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Link
}
from
'
@chakra-ui/react
'
;
import
NextLink
from
'
next/link
'
;
import
NextLink
from
'
next/link
'
;
const
Nav
=
()
=>
{
const
Account
Nav
=
()
=>
{
return
(
return
(
<
Flex
<
Flex
w=
"250px"
w=
"250px"
...
@@ -15,4 +15,4 @@ const Nav = () => {
...
@@ -15,4 +15,4 @@ const Nav = () => {
)
)
}
}
export
default
Nav
;
export
default
Account
Nav
;
components/Page/Page.tsx
View file @
3afcdfae
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Box
,
HStack
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
HStack
}
from
'
@chakra-ui/react
'
;
import
Nav
from
'
../Nav/
Nav
'
;
import
AccountNav
from
'
../AccountNav/Account
Nav
'
;
interface
Props
{
interface
Props
{
children
:
React
.
ReactNode
;
children
:
React
.
ReactNode
;
...
@@ -17,7 +17,7 @@ const Page = ({ children }: Props) => {
...
@@ -17,7 +17,7 @@ const Page = ({ children }: Props) => {
spacing=
"12"
spacing=
"12"
alignItems=
"stretch"
alignItems=
"stretch"
>
>
<
Nav
/>
<
Account
Nav
/>
<
Box
borderRadius=
"10px"
w=
"100%"
overflow=
"hidden"
>
{
children
}
</
Box
>
<
Box
borderRadius=
"10px"
w=
"100%"
overflow=
"hidden"
>
{
children
}
</
Box
>
</
HStack
>
</
HStack
>
);
);
...
...
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