Skip to content

Commit 99ebbea

Browse files
committed
Fix JSX bugs
1 parent 10ef12a commit 99ebbea

2 files changed

Lines changed: 29 additions & 29 deletions

File tree

apps/juxtaposition-ui/src/services/juxt-web/routes/console/messages.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const router = express.Router();
1414

1515
router.get('/', async function (req, res) {
1616
const conversations = await database.getConversations(req.pid);
17-
res.jsx(<MessagesView conversations={conversations} ctx={buildContext()} />);
18-
});
17+
res.jsx(<MessagesView conversations={conversations} ctx={buildContext(res)} />);
18+
});
1919

2020
router.post('/new', async function (req, res) {
2121
let conversation = await database.getConversationByID(req.body.community_id);

apps/juxtaposition-ui/src/services/juxt-web/views/navbar.tsx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ export function NavBar(props: NavBarProps): ReactNode {
7171
viewBox="0 0 24 24"
7272
fill="none"
7373
stroke="#A1A8D9"
74-
stroke-width="2"
75-
stroke-linecap="round"
76-
stroke-linejoin="round"
74+
strokeWidth="2"
75+
strokeLinecap="round"
76+
strokeLinejoin="round"
7777
className="feather feather-home"
7878
>
7979
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
@@ -89,9 +89,9 @@ export function NavBar(props: NavBarProps): ReactNode {
8989
viewBox="0 0 24 24"
9090
fill="none"
9191
stroke="#A1A8D9"
92-
stroke-width="2"
93-
stroke-linecap="round"
94-
stroke-linejoin="round"
92+
strokeWidth="2"
93+
strokeLinecap="round"
94+
strokeLinejoin="round"
9595
className="feather feather-users"
9696
>
9797
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
@@ -109,9 +109,9 @@ export function NavBar(props: NavBarProps): ReactNode {
109109
viewBox="0 0 24 24"
110110
fill="none"
111111
stroke="#A1A8D9"
112-
stroke-width="2"
113-
stroke-linecap="round"
114-
stroke-linejoin="round"
112+
strokeWidth="2"
113+
strokeLinecap="round"
114+
strokeLinejoin="round"
115115
className="feather feather-mail"
116116
>
117117
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" />
@@ -128,9 +128,9 @@ export function NavBar(props: NavBarProps): ReactNode {
128128
viewBox="0 0 24 24"
129129
fill="none"
130130
stroke="#A1A8D9"
131-
stroke-width="2"
132-
stroke-linecap="round"
133-
stroke-linejoin="round"
131+
strokeWidth="2"
132+
strokeLinecap="round"
133+
strokeLinejoin="round"
134134
className="feather feather-bell"
135135
>
136136
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9" />
@@ -157,9 +157,9 @@ export function NavBar(props: NavBarProps): ReactNode {
157157
transform="translate(-14.79 92.28) rotate(-45)"
158158
fill="none"
159159
stroke="currentColor"
160-
stroke-linecap="round"
161-
stroke-linejoin="round"
162-
stroke-width="16"
160+
strokeLinecap="round"
161+
strokeLinejoin="round"
162+
strokeWidth="16"
163163
/>
164164
<rect
165165
x="138.75"
@@ -170,9 +170,9 @@ export function NavBar(props: NavBarProps): ReactNode {
170170
transform="translate(-51.24 180.28) rotate(-45)"
171171
fill="none"
172172
stroke="currentColor"
173-
stroke-linecap="round"
174-
stroke-linejoin="round"
175-
stroke-width="16"
173+
strokeLinecap="round"
174+
strokeLinejoin="round"
175+
strokeWidth="16"
176176
/>
177177
<line
178178
x1="145.66"
@@ -181,9 +181,9 @@ export function NavBar(props: NavBarProps): ReactNode {
181181
y2="110.34"
182182
fill="none"
183183
stroke="currentColor"
184-
stroke-linecap="round"
185-
stroke-linejoin="round"
186-
stroke-width="16"
184+
strokeLinecap="round"
185+
strokeLinejoin="round"
186+
strokeWidth="16"
187187
/>
188188
<line
189189
x1="89.66"
@@ -192,17 +192,17 @@ export function NavBar(props: NavBarProps): ReactNode {
192192
y2="166.34"
193193
fill="none"
194194
stroke="currentColor"
195-
stroke-linecap="round"
196-
stroke-linejoin="round"
197-
stroke-width="16"
195+
strokeLinecap="round"
196+
strokeLinejoin="round"
197+
strokeWidth="16"
198198
/>
199199
<path
200200
d="M132,148,61,219a17,17,0,0,1-24,0h0a17,17,0,0,1,0-24l71-71"
201201
fill="none"
202202
stroke="currentColor"
203-
stroke-linecap="round"
204-
stroke-linejoin="round"
205-
stroke-width="16"
203+
strokeLinecap="round"
204+
strokeLinejoin="round"
205+
strokeWidth="16"
206206
/>
207207
</svg>
208208
<span id="news-badge" className="badge"></span>

0 commit comments

Comments
 (0)