more fixes
This commit is contained in:
16
resources/js/dashboard/index.jsx
Normal file
16
resources/js/dashboard/index.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import '../bootstrap'
|
||||
import React from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import DashboardPage from './DashboardPage'
|
||||
|
||||
const rootElement = document.getElementById('dashboard-root')
|
||||
|
||||
if (rootElement) {
|
||||
const root = createRoot(rootElement)
|
||||
root.render(
|
||||
<DashboardPage
|
||||
username={rootElement.dataset.username || 'Creator'}
|
||||
isCreator={rootElement.dataset.isCreator === '1'}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user