File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const Layout = ({ children }: { children: ReactNode }) => {
111
111
112
112
return (
113
113
< div className = "flex h-full overflow-y-auto" >
114
- < Sidebar
114
+ { token && < Sidebar
115
115
className = "sticky top-0 h-screen"
116
116
rootStyles = { {
117
117
borderColor : "#171C28" ,
@@ -149,7 +149,7 @@ const Layout = ({ children }: { children: ReactNode }) => {
149
149
</ Menu >
150
150
}
151
151
</ div >
152
- </ Sidebar >
152
+ </ Sidebar > }
153
153
< div className = "w-full overflow-y-scroll" > { children } </ div >
154
154
</ div >
155
155
) ;
Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ const EditQuestionDialog = ({ questionId }: EditQuestionDialogProp) => {
95
95
. then ( ( ) => {
96
96
Swal . fire ( {
97
97
icon : "success" ,
98
- title : "Question Added " ,
98
+ title : "Question Edited " ,
99
99
text : "Question has been modified successfully." ,
100
100
} ) ;
101
101
} )
102
102
. catch ( ( ) => {
103
103
Swal . fire ( {
104
104
icon : "error" ,
105
- title : "Question Add Failed" ,
105
+ title : "Question Edit Failed" ,
106
106
text : "Please try again later." ,
107
107
} ) ;
108
108
} )
You can’t perform that action at this time.
0 commit comments