Skip to content

Commit ff35f44

Browse files
committed
fix(): Fixing the nav bar
1 parent 7cd2bb5 commit ff35f44

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/screens/articleEditor/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const ARTICLE_DEFAULT: ArticleWithContent = {
55
image: '',
66
title: '',
77
description: '',
8-
md_data: '',
8+
md_data: '# Default Article\n\nThis is a default article.',
99
author: '',
1010
group_id: '',
1111
group_name: '',

src/screens/common/NavigationBar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ const NavigationBar = () => {
105105
bg={'rgba(255, 255, 255, 0.1)'}
106106
backdropFilter={'blur(20px)'}
107107
transition={'background-color 0.3s'}
108-
display={
109-
pathName !== BASE_URL_ROUTE + '/privateRoute' ? 'none' : 'flex'
110-
}
108+
display={pathName !== BASE_URL_ROUTE ? 'none' : 'flex'}
111109
>
112110
{NavigationLink.map(({ name, href }) => (
113111
<LinkButton
@@ -139,7 +137,9 @@ const NavigationBar = () => {
139137
onClick={() => {}} // eslint-disable-line
140138
>
141139
<HStack
142-
display={pathName === BASE_URL_ROUTE ? 'none' : 'flex'}
140+
display={
141+
pathName !== BASE_URL_ROUTE + '/privateRoute' ? 'none' : 'flex'
142+
}
143143
border={'1px solid gray'}
144144
p={2}
145145
>

0 commit comments

Comments
 (0)