mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
SPRINT-20: made pagination options avaialble for table widgets, updated 'primary color' to come from metadata where possible (at this time),
This commit is contained in:
@ -382,6 +382,10 @@ export default function App()
|
||||
{
|
||||
appleIcon.href = metaData.branding.icon;
|
||||
}
|
||||
if (metaData.branding.accentColor)
|
||||
{
|
||||
setAccentColor(metaData.branding.accentColor)
|
||||
}
|
||||
}
|
||||
|
||||
let profileRoutes = {};
|
||||
@ -519,12 +523,15 @@ export default function App()
|
||||
);
|
||||
|
||||
const [pageHeader, setPageHeader] = useState("");
|
||||
const [accentColor, setAccentColor] = useState("#0062FF");
|
||||
return (
|
||||
|
||||
appRoutes && (
|
||||
<QContext.Provider value={{
|
||||
pageHeader: pageHeader,
|
||||
setPageHeader: (header: string) => setPageHeader(header)
|
||||
accentColor: accentColor,
|
||||
setPageHeader: (header: string) => setPageHeader(header),
|
||||
setAccentColor: (accentColor: string) => setAccentColor(accentColor)
|
||||
}}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline />
|
||||
|
Reference in New Issue
Block a user