FAQS
General Style

How to Change Font Style ?

Step 1:

Go To style.scss (src/assets/scss/styles.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import in to styles.scss file

How to Select font Family

Example:

Step 2:

And paste Your Selected font-family in style.scss

Example:

Step 3:

And add the Your Selected font-family in _customs.scss(src/assets/scss/custom/_customs.scss)

Example:

								body {
										font-size: 1rem;
										font-family: "Roboto", sans-serif;
										font-weight: 400;
										color: #{$color};
										background-color: #{$background};
										line-height: 1.5;
										text-align: start;
										overflow-x: clip;
										padding: 0;
										margin: 0;
									}
																																																																					
																																																																				

How to change Menu icons ?

By default menu icons are Bootstrap icons if you want to change icons please follow below steps
Step 1 :

To change Menu icons, open Header.jsx page and go through app-sidebar section, in that section you will find Bootstrap icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

																																																					
																																																					
															
														

How to Change Logo ?

Go To "src/assets/images/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

How to Enable RTL Version

How to Enable RTL Version?

Please follow the below steps to enable RTL Version
Step 1 :

To enable RTL Version you have to open index.html (src/index.html) file and add dir="rtl".

make sure to check whether localstorage is clear or not to apply this styles.
<html dir="rtl" ...
How to Enable Boxed Version

How to Enable Boxed Version?

Please follow the below steps to enable Boxed Version
Step 1 :

To enable Boxed Version you have to open index.html (src/index.html) file and add data-width="boxed"

make sure to check whether localstorage is clear or not to apply this styles.
<html data-width="boxed" ...
Dark Theme Style

How to Enable Dark Theme?

Please follow the below steps to enable Dark Theme
Step 1 :

To enable Dark Theme you have to open index.html (src/index.html) file and add data-theme-mode="dark"

make sure to check whether localstorage is clear or not to apply this styles.
<html data-theme-mode="dark" ...
To clear LocalStorage(cookie)

How to clear LocalStorage (cookie)?

Linting-and-formatting-with-eslint-in-vs-code

Linting-and-formatting-with-eslint-in-vs-code?

Step1:

install eslint locally and globally.

npm install -g eslint
npm install eslint --save-dev

Once installation is done run the below command in you project root directory.

./node_modules/.bin/eslint --init
// If you face any issue like . is not reconiged
> cd node_modules/.bin
> eslint --init

There will some questions will appear make sure to select as per your requirement.

Once everything is done you will find .eslintrc.json / .eslintrc.js file will be created.

Step2:

Download the eslint extension in Visual studio code.(ESLint by Dirk Baeumer)

Note: We are having custom rules in .eslintrc.json/ .eslintrc.js file.

Firebase Authentication

Firebase SetUp

Step1:

Now run below commands inside our React project to install firebase latest.

npm install firebase --save 
Step2:

Now we need to add firebase configuration details(create database on firebase) and we need to add that details in hostma/src/Firebase/Firebase.jsx file:

const firebaseConfig = {
apiKey: "***",
authDomain: "***",
projectId: "***",
storageBucket: "***",
messagingSenderId: "***",
appId: "***",
measurementId: "***",
};
const firebaseApp = firebase.initializeApp(firebaseConfig);

const db = firebaseApp.firestore();
const auth = firebase.auth();

export { db, auth }
												
												

A Guide to Revocation Firebase

Step1:

we have to remove firebase flie src/Firebase/Firebase.Jsx

const firebaseConfig = {
apiKey: "***",
authDomain: "***",
projectId: "***",
storageBucket: "***",
messagingSenderId: "***",
appId: "***",
measurementId: "***",
};
const firebaseApp = firebase.initializeApp(firebaseConfig);

const db = firebaseApp.firestore();
const auth = firebase.auth();

export { db, auth }

Step2:

Remove from the Routing file src/main.tsx


{/* //Firebase Authentication */}
<Route path={`${import.meta.env.BASE_URL}`} element={<FirebaseAuth />}>
<Route index element={<Login/>} />
<Route path={`${import.meta.env.BASE_URL}auth/login/login`} element={<Login/>} />
<Route path={`${import.meta.env.BASE_URL}auth/signup/signup`} element={<Register/>} />
</Route>
												
												
Step3:

Remove the path from the Header section src\components\layouts\header\Header.jsx


<Link to={`${import.meta.env.BASE_URL}auth/signup/signup`} className="btn btn-secondary min-w-fit-content"> Register</Link>
<Link to={`${import.meta.env.BASE_URL}auth/login/login`}className="btn btn-outline-light login-btn min-w-fit-content" >Sign out</Link>