Nextjs Variables


To make our demo pages (pages found in pages/*) a bit more easy to understand and to have less code, we’ve created some special files with variables, variables which we import where we need them.

You will find all the variables regarding the charts in variables/charts.js and all the rest variables (variables used for example in tasks page etc.) in variables/general.js.

At the end of each of these three files you will find the exports with comments for you to know where each variables is used.

To use any of these variables you need to import them like so:

import { variableName } from 'variables/variableFile.js';

Where variableFile.js is one of charts.js or general.js and variableName is a variable found at the end of the variableFile.js.