config cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// Root.jsx
|
||||
import { toast } from 'react-toastify';
|
||||
import { API_URL } from '../config';
|
||||
import { Player } from './AudioPlayer.jsx';
|
||||
import Memes from './Memes.jsx';
|
||||
import { JoyUIRootIsland } from './Components.jsx';
|
||||
@@ -13,7 +12,6 @@ import 'primereact/resources/primereact.min.css';
|
||||
|
||||
export default function Root({child}) {
|
||||
window.toast = toast;
|
||||
window.API_URL = API_URL;
|
||||
const theme = document.documentElement.getAttribute("data-theme")
|
||||
usePrimeReactThemeSwitcher(theme);
|
||||
// console.log(opts.children);
|
||||
|
@@ -14,7 +14,7 @@ import Checkbox from "@mui/joy/Checkbox";
|
||||
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
||||
import jQuery from "jquery";
|
||||
import { AutoComplete } from 'primereact/autocomplete';
|
||||
import { api as API_URL } from '../config';
|
||||
import { API_URL } from '../config';
|
||||
|
||||
window.$ = window.jQuery = jQuery;
|
||||
const theme = document.documentElement.getAttribute("data-theme")
|
||||
|
@@ -8,8 +8,7 @@ export const metaData = {
|
||||
"codey.lol",
|
||||
};
|
||||
|
||||
export const api = "https://api.codey.lol";
|
||||
export const API_URL = api;
|
||||
export const API_URL = "https://api.codey.lol";
|
||||
export const socialLinks = {
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user