238 comments found.
Hello, how can we get your email to contact you about an important matter?
Hi, is current version already using hooks?
Hi akhmadmizkat,
Terimaksih telah mengunjungi Portofolio saya.
Untuk enlite prome sebagian besar component telah menggunakan react hooks. Tinggal beberapa component yang masih menggunakan Class, yaitu Form dan Demo penggunaan UI. Dan akan segera menyusul untuk updatenya,
Salam.
Terimakasih infonya. Kalau misalnya purchase sekarang, nanti updatenya masih dapet kah mas?
Hi akhmadmizkat,
Terimakasih telah membeli template Enlite Prime.
Iya untuk update akan selalu dapat selama template ini masih ada di Themeforest.
Silahkan jika memiliki pertanyaan lebih lanjut.
Salam.
Hi, We purchased this template and we need to install some custom libarary. we installed font-awesome. but while building dll (npm run build:dll) it shows Module not found font-awesome error. Can you pls help us out to resolve this?
Hi karthik_energica,
Thanks for purchasing.
You can exclude the font-awesome from build:dll in packages.json by add it in array exclude
"dllPlugin": {
"exclude": [
"font-awesome"
]
}
And also in internals/config.js
dllPlugin: {
defaults: {
exclude: [
'font-awesome'
Hope this can help. Feel free if you have any further queries.
Regards.
Good afternoon … can you enable an HTML5 version?
Hi edsaana,
Thanks for purchasing.
Unfortunately we don’t have HTML version, only react.js But we open to discuss for custom development to create HTML version. For further details please contact us via our profile message https://themeforest.net/user/ilhammeidi.
Regards.
hello first thank you for the great project second thing i have error when i upload the dashboard on live server there an page not loading but in local it load and work and i don’t see any error on live or local server thank you
Hi newvision-it,
Thanks for purchasing and the appreciation.
For deployment we recommend to follow the docs https://ilhammeidi.github.io/enlite-docs/#deploy
If you deploy by uploading method, the error may happen because assets not loaded from the correct path. So need to change the path from src=”/file.js” to src=”./file.js”
You can adjust in internals/webpack/webpack.prod.babel.js
// line: 20 - in output add public path './'
output: {
publicPath: './'
}
// line: 96 - in OfflinePlugin set relativePaths to true
new OfflinePlugin({
relativePaths: true,
)}
- After npm run build, please make sure in build/index.html and build/sw.js The path should be src=”./file.js”.
- For another static assets like favicon and images in app/index.html need to change the path manually.
Hope this can help. Feel free if you have any further queries.
Regards.
Mohon bantuannya, bagaimana cara deploy Enlite Prime dalam sub folder URL utama : Misal URL homepagenya https:///example.com/folder/subfolder/
Bagaimana cara konfigurasinya saat deploy npm run build Apa yang harus diedit? Terima kasih
Hi myappsnay,
Secara default template ini semua assets path akan mengarah ke domain utama. Jika ingin deploy dengan subfolder perlu mengubah path src="/file.js" menjadi src="./file.js"
internals/webpack/webpack.prod.babel.js
// line: 20 - Di output tambahkan public path './'
output: {
publicPath: './'
}
// line: 96 - Di OfflinePlugin set relativePaths menjadi true
new OfflinePlugin({
relativePaths: true,
)}
Setelah npm run build, coba pastikan di build/index.html dan build/sw.js Harusnya path menjadi src="./file.js".
Untuk assets lain yang static seperti favicon dan images di app/index.html harus di ubah manual pathnya.
Jika ada masih kendala, saya sarankan menggunakan subdomain dashboard.example.com Karena seperti di contoh demo, sejauh ini tidak ada kendala jika menggunakan subdomain.
Salam.
Terima kasih solusinya, berhasil.
Sip sama-sama 
Hi ilhammeidi, buy this template some time ago, but… now i get error, can you help me?
The error occours when i run npm install, and i get an error related with node-pre-gyp.
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.20.0 and node@12.19.1 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
The error occurs on mac, linux and windows.
Hi fbenevides,
Please check youre node.js version. This template work on node.js stable v12 and v14. Then try to update some package list in package.json
"firebase": "^7.24.0", "node-sass": "^4.14.1", (if using node 14) "node-sass": "^4.12.0", (if using node 12)
See the compatibility of node-sass https://www.npmjs.com/package/node-sass
Regards.
Hi Ilham, Assamaulaikum Jika berkenan untuk mendukung Cara login pake axios dengan restful API php seperti apa ya di enlite prime?
Terima kasih, salam nusantara Salam sejahtera
Walaikumsalam myappsnay,
Untuk API backend biasanya di akses lewat server terpisah. Baik php ataupun teknologi lain selama responsenya json akan bisa dibaca di frontend react.
Metodenya bisa menggunakan useEffect atau componentDidMount di componentnya langsung. Berikut referensinya https://www.robinwieruch.de/react-hooks-fetch-data dan https://github.com/the-road-to-learn-react/react-hooks-introduction
Semoga membantu.
Salam.
Terima kasih, mohon bantuannya kang Ilham. Terkait form ketika useEffect atau handle submit untuk membuat animasi loading dan messageAuth. Bagaimana cara pemakaiannya ya? salam
Hi myappsnay,
Untuk animasi loading dan messageAuth bisa dicek contohnya diapp/components/Forms/LoginForm.js
<Button variant="contained" disabled={loading} fullWidth color="primary" size="large" type="submit">
{loading && <CircularProgress size={24} className={classes.buttonProgress} />}
<FormattedMessage {...messages.loginButtonContinue} />
{!loading && <ArrowForward className={classNames(classes.rightIcon, classes.iconSmall, classes.signArrow)} disabled={submitting || pristine} />}
</Button>
Untuk variant animasi loading bisa dilihat di http://enlite.ux-maestro.com/app/ui/progress Silahkan click view source untuk melihat penggunaanya
Kemudain untuk message bisa menggunakan app/components/Forms/MessagesForm.js
{
messagesAuth !== null || ''
? (
<MessagesForm
variant="error"
className={classes.msgUser}
message={messagesAuth}
onClose={closeMsg}
/>
)
: ''
}
Semoga membantu.
salam.
Cara update messageAuth nya bagaimana supaya tidak null
Hi myappsnay,
Untuk message jika sudah terintegrasi dengan API, pastikan response untuk message nya juga tidak null. Kemudian dari sisi front-end bisa menggunakan local state untuk testing.
const [open, setOpen] = React.useState(false);
const [msg, setMsg] = React.useState('');
const handleClick = (msg) => {
setMsg(msg);
setOpen(true);
};
const handleClose = () => {
setOpen(false);
};
return (
<div classname="{classes.root}">
<Button variant="outlined" onClick={() => handleClick('Contoh Pesan Message')}>
Open success snackbar
</Button>
<Snackbar open={open} autoHideDuration={6000} onClose={handleClose}>
<Alert onClose={handleClose} severity="success">
{msg}
</Alert>
</Snackbar>
</div>
);
Semoga membantu.
Salam.
Thanks kang untuk contohnya. sangat manfaat Namun yang saya inginkan penggunaan const loading dan messageAuth yang ada di Login.js dan LoginForm.js Intinya saya ingin form login ketika diklik tombol lanjutkan muncul loadingnya, jika berhasil saya arahkan ke halaman admin nah jika gagal saya inggin menggunakan messageAuthnya. Bagaimana caranya Tolong kang bisa email untuk supportnya? Sampurasun
Hi myappsnay,
Dari sisi front end ada 2 state yang utama yaitu user dan loading.
Contoh pada saat click button submit makasetLoading(true)Jika response loginnya berhasil, akan pindah halaman dashboard
if (user !== null) {
history.push('/app');
}
Jida response login gagal, make tampilkan message, seperti contoh sebelumnya
if (user == null || user == undefined) {
setMsg('login gagal');
setOpen(true);
}
Di template ini menggunakan redux dan firebase dimana fungsi2 auth sudah disediakan dan response nya cukup lengkap. Jika menggunakan API lain mungkin format responsenya berbeda. Kebetulan saya expert di frontend tidak terlalu fokus di backend, jadi hanya bisa cari referense seperti beri contoh berikut:
Article https://jasonwatmore.com/post/2017/09/16/react-redux-user-registration-and-login-tutorial-example
Repo https://github.com/cornflourblue/react-redux-registration-login-example/tree/master/src
Demo https://stackblitz.com/edit/react-redux-registration-login-example
Semoga membantu.
Dan untuk email, silahkan message lewat halaman profile saya https://themeforest.net/user/ilhammeidi Nanti akan saya reply ke email.
Salam.
Please help!
Hi myappsnay ,
Silahkan cek balasan kami di comment sebelumnya.
Terimakasih.
Hello there, can you help me for Installation Enlite Prime?
Hi myappsnay ,
Terimakasih telah membeli template kami dan laporan errornya.
Untuk error tersebut tampaknya karena menggunakan node v14 dan node-sass v4.12 tidak support. Silahkan install node-sass versi 4.14npm install node-sass@4.14.0 --save dan jalankan npm rebuild node-sass jika perlu.
Berikut tambahan referensinya https://stackoverflow.com/questions/37415134/error-node-sass-does-not-yet-support-your-current-environment-windows-64-bit-w
Kami akan update package list nya minggu depan.
Semoga bisa membantu dan silahkan jika ada pertanyaan lebih lanjut.
Salam.
Hi myappsnay ,
Bila masih ada error saat installasi atau run npm start terkait sass, silahkan coba ganti sass-loader v8.x.x ke sass-loader v7.1.0 dengan perintah npm install sass-loader@7.1.0 --save
Salam.
× 「wdm」:
ERROR in ./app/styles/layout/base.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/layout/base.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.0
at module.exports (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at getDefaultSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
@ ./app/styles/layout/base.scss 2:14-209 21:1-42:3 22:19-214
@ ./app/app.js
@ multi ./node_modules/react-app-polyfill/ie11.js webpack-hot-middleware/client?reload=true ./app/app.js
ERROR in ./app/styles/components/Messages.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/components/Messages.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.0
at module.exports (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at getDefaultSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
@ ./app/styles/components/Messages.scss 2:14-213 21:1-42:3 22:19-218
@ ./app/components/Header/UserMenu.js
@ ./app/components/Header/Header.js
@ ./app/components/index.js
@ ./app/containers/Templates/Dashboard.js
@ ./app/containers/App/Application.js
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi ./node_modules/react-app-polyfill/ie11.js webpack-hot-middleware/client?reload=true ./app/app.js
ERROR in ./app/styles/components/Typography.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/components/Typography.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.0
at module.exports (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at getDefaultSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (D:\#New Vision\Eltawheed-HTML\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
@ ./app/styles/components/Typography.scss 2:14-215 21:1-42:3 22:19-220
@ ./app/components/Forms/ResetForm.js
@ ./app/components/index.js
@ ./app/containers/Templates/Dashboard.js
@ ./app/containers/App/Application.js
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi ./node_modules/react-app-polyfill/ie11.js webpack-hot-middleware/client?reload=true ./app/app.js
npm ERR! path D:\#New Vision\Eltawheed-HTML\Dashboard
npm ERR! command failed
npm ERR! signal SIGINT
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "cross-env NODE_ENV=development node server"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gamal\AppData\Local\npm-cache\_logs\2020-11-15T10_28_13_001Z-debug.log
Hi newvision-it,
Thanks for purchasing and the appreciation.
It seem’s error from sass/scss that not installed successfully. Please follow the step:
- Try to install node-sass manually by npm install node-sass --save
- Build dll libraries npm run build:dll
- Try to start project again npm start
If the solution above not working:
- please try to change the node-saas version in package.json to “node-sass”: “^4.14.0”, and install again.
- or use node.js version 14.15 (which recommended for most users).
This issue and another the common issues also described in docs for more detail https://ilhammeidi.github.io/enlite-docs/#shoot
Hope this can help. And feel free if you have any further queries.
Regards.
ERROR in ./app/styles/layout/base.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/layout/base.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.
at getSassImplementation (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:46:13)
at Object.loader (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\index.js:40:61)
ERROR in ./app/styles/components/Messages.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/components/Messages.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.
at getSassImplementation (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:46:13)
at Object.loader (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\index.js:40:61)
ERROR in ./app/styles/components/Typography.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./node_modules/sass-loader/dist/cjs.js??ref--9-3!./app/styles/components/Typography.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.
at getSassImplementation (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\getSassImplementation.js:46:13)
at Object.loader (D:\#New Vision\Falcon\Dashboard\node_modules\sass-loader\dist\index.js:40:61)
Hi,
I think you need to try to change the node-saas version in package.json to “node-sass”: “4.14.0”, and install again. It means this template use node-sass version < 5.
And there’s also discussion about this issue that might can help https://stackoverflow.com/questions/64625050/error-node-sass-version-5-0-0-is-incompatible-with-4-0-0
Regards.
thank you very much you saved my day
Youre welcome, happy to hear that 
Hello i have a question, on the landing page is the contact form how can i get it to send the email from that form to my inbox?
Greets
Hi CodeNerdsNL,
Thanks for purchasing.
For form contact, first get the values from state. Since this template handle the front-end only, then you need to setup the mailer with nodemailer https://nodemailer.com/about/. Here’s the article sample https://medium.com/javascript-in-plain-english/sending-email-in-react-application-with-nodemailer-afcef6906608 Repo: https://github.com/ishan-me/React_node_email
Hope this can help. Feel free if you have nay further queries.
Regards.
hello, when I am following all the steps as mentioned in the documentation, the app is not opening on the localhost. I can only see the loader moving but the app is not opening. can you please help. thank you
Hello, I want to change the padding, top margin, and a few other CSS of the login and register page. can you please tell me where can I find the CSS files of the same and how can I edit the values? I can do it easily when I right click and inspect an element on chrome but I cannot find the CSS file and the path to locate it through inspect the element and change the values and adjust responsiveness. Please help. thank you
Hi parth619,
Thanks for purchasing.
About the installation problem, please try to remove node_modules/ and try to install again. And for styling this template use jss (css in js). For user form styling you can find in \app\components\Forms\user-jss.js
And for the rest styling, you can find by locate the react-component first with react dev-tools plugin, and the jss-style should be in same directory or as inline(variable)
Feel free if you have any further queries.
Regards.
In MUIDatatable expandableRows and renderExpandableRow, Is there a way to automatically close previously opened row(s) on clicking/opening another row?
Hi ngdigitals,
The MUIDatatable expandableRows is new feature from MUIDatable, which is not implemented in this template yet. But we will figure it out how to handle it soon.
Regards.
Please check https://codesandbox.io/s/muidatatables-s7je3 > Choose Expandable Row
Here’s the step:
Create state to initial one row to be opened, i.e for first row.
state = {
rowsExpanded: [0]
};
Then put in rowsExpanded param
rowsExpanded: this.state.rowsExpanded,After that on expandedRowChanges change the state value with current expanded row index
onRowExpansionChange: (curExpanded, allExpanded, rowsExpanded) => {
this.setState({ rowsExpanded: [curExpanded[0].index] });
// console.log(curExpanded);
}
Hope this can help.
Regards.
Thanks for your quick response.
The onRowExpansionChange is not firing or getting called, below is my code:
render() {
const { columns, rowsExpanded } = this.state;
const { classes, intl, page, pageLimit, searchText, data, totalCount, fetchData} = this.props;
const options = {
filter: false,
filterType: 'dropdown',
responsive: 'stacked',
download: false,
print: false,
searchText: searchText,
rowsPerPage: pageLimit,
page: page,
jsonMode: true,
serverSide: true,
count: totalCount,
selectableRows : false,
expandableRows: true,
rowsExpanded: rowsExpanded,
onTableChange: (action, tableState) => {
console.log(action)
switch (action) {
case 'search':
this.debounceSearch(tableState.searchText)
break;
case 'changePage':
case 'changeRowsPerPage':
fetchData(tableState.page, tableState.rowsPerPage, tableState.searchText)
break;
}
},
renderExpandableRow: (rowData, rowMeta) => {
return this.rowExpansion(data[rowMeta.rowIndex]);
},
onRowExpansionChange: (curExpanded, allExpanded, rowsExpanded) => {
console.log(curExpanded);
this.setState({ rowsExpanded: [curExpanded[0].index] });
},
};
return (
<div classname="{classes.table}">
<MUIDataTable
title={""}
data={data}
columns={columns}
options={options}>
</MUIDataTable>
</div>
);
}
Hi,
The onRowExpansionChange only available in MuiDataTables v 3.4.0 Please make sure to install the plugin MuiDataTables v 3.4.0 Please make sure to install the plugin.
Regards.
Hi I realize that this template is created using React Boilerplate. Any advice on converting it to using Create React App? Or do you have a version using Create React App?
Hi chrisxcidic,
Terimaksih telah membeli Enlite Prime.
Sayangnya kami hanya memilik versi React Boilerplate.
Untuk CRA silahkan dicoba dengan memindahkan container, components, redux, styles dan public asset ke project CRA. Dan juga jangan lupa untuk menginstal dependencies yang terkait.
Silahkan jika memiliki pertanyaan lebih lanjut.
Salam.
Hi, saya mau order. sebelumnya mau tanya terlebih dahulu. perbedaan yang signifikan dengan yang dandelion pro seperti apa? Terima kasih
Hi adhi_nugraha,
Terimakasih telah mengunjungi portfolio kami.
Perbedaan keduanya terdapat pada konsep design. Kemudian untuk fitur Enlite terintegrasi dengan backend firebase. Dan untuk Dandelion memiliki sample halaman yang lebih banyak.
Salam.
When is hooks version coming?
Later this year
hi, is this using react hooks?
Hi phpexpert3
Thanks for visiting our portfolio. This is a React.js template written in react class. Not migrate to hooks yet.
Regards.
Hello Mister, Im trying to edit the file header-jss.js and wanted to ask how can I edit the color theme.palette.text.primary, I didnt find in which file, Thanks for your support
Hi mysterieux20,
Thanks for purchasing.
By default this template use blueTheme. To change default theme color, you can find in app/api/palette/
This template contain 2 color scheme, dark and light.
- Light theme: app/api/palette/lightPalette.js
- Dark theme: app/api/palette/darkPalette.js
For more detail. the both files will be included in themePaletteMode.js, then used in /app/styles/theme/applicationTheme.js You can also see UI Redux Architecture diagram in https://ilhammeidi.github.io/enlite-docs/code_flow/ui_lang.html#theme
Hope this can help. And feel free if you have any further queries.
Regards.
Hi ilhammeidi, I mean I wanted to edit the color of the title of the website “Enlite Prime” near the logo, it is white when the template is dark, and black when the template is dark. I want it for example red in light mode and green in dark mode. In app/components/Header/header-jss.js it is defined using: brand: { display: ‘flex’, alignItems: ‘center’, justifyContent: ‘center’, padding: 10, fontSize: 16, margin: 0, fontWeight: 600, textDecoration: ‘none’, color: theme.palette.text.primary, ‘& img’: { marginRight: 10, width: 30 }, }
I didnt find how to edit theme.palette.text.primary, editing the colors in lightPalette.js and darkPalette.js didnt affect it. I hope you understand what I mean.
Thanks.
it is white when the template is dark, and black when the template is light *
Hi mysterieux20,
Sorry for the misunderstanding.
For dark/light you need to create condition in jss. You can use theme.palette.type which return is dark or light. For example red in light mode and green in dark mode
color: theme.palette.type === 'dark' ? "green" : "red",
You can see the example usage in header-jss.js around line:44. Then for theme.palette.text.primary is the default value from material-ui library. We’re not recommend to change it, because will changes all of text color globally. But if you want to do it in, you can make an overider in app/styles/theme/applicationTheme.js in palette object
palette: {
text: {
primary: mode === "dark" ? "white" : "black",
secondary: mode === "dark" ? "#dedede" : "#525252",
}
}
Hope this can help. And feel free if you have any further queries.
Regards.
Hi, I need to remove the firebase-auth from login and registration. what should be the things to be disabled or removed.
Basically we will be doing auth using REST APIs or something , not Firebase. Please help me 
Hi wifisoftpune,
Thanks for purchasing.
This template also including static pages for authentication without firebase function, so you can use that without backend effect. You can see in Demo site > Pages > Static Auth categories. Here’s the pages code /app/containers/Pages/Users/
If you want to remove firebase completely, you can remove the mentioned bellow:
- config:- /app/firebase/ - firebase.json - firebase.rules.json- Sample pages and components:
- app/containers/SampleFullstackApps/ - app/containers/Pages/UsersFullstack/ - app/components/Forms/LoginFormFirebase.js - app/components/Forms/RegisterFormFirebase.js- Reducers (for reducer you can remove or edit, depend on your need)
- /app/redux/actions/authActions.js - /app/redux/constants/authConstants.js - /app/redux/modules/authReducer.js - /app/redux/selectors/authSelectors.js
Hope this can help. Feel free if you have any further queries.
Regars.