mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-07-22 07:25:43 +00:00
Update domain references to pezkuwichain.app and rebrand from polkadot
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Copyright 2019-2025 @pezkuwi/extension-ui authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './i18n/i18n.js';
|
||||
|
||||
import React, { Suspense } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { HashRouter } from 'react-router-dom';
|
||||
|
||||
import { View } from './components/index.js';
|
||||
|
||||
export default function createView (Entry: React.ComponentType, rootId = 'root'): void {
|
||||
const rootElement = document.getElementById(rootId);
|
||||
|
||||
if (!rootElement) {
|
||||
throw new Error(`Unable to find element with id '${rootId}'`);
|
||||
}
|
||||
|
||||
createRoot(rootElement).render(
|
||||
<Suspense fallback='...'>
|
||||
<View>
|
||||
<HashRouter>
|
||||
<Entry />
|
||||
</HashRouter>
|
||||
</View>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user