Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use environment variables #1143

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/JsonSchemaValidator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import ReactMarkdown from 'react-markdown';
import { DataGridPremium, GridToolbar, useGridApiRef, useKeepGroupedColumnsHidden, gridClasses, } from '@mui/x-data-grid-premium';
import { LicenseInfo } from '@mui/x-license-pro';

LicenseInfo.setLicenseKey("a3d6a1e3cdca760ace01b65d01608642Tz03MTE1NixFPTE3MjE1NDQ2NzEwMDAsUz1wcmVtaXVtLExNPXN1YnNjcmlwdGlvbixLVj0y");
LicenseInfo.setLicenseKey(process.env.PUBLIC_MUI_LICENSE_KEY);

// Import all the schemas
// Import all the schemas
function importAll(r) {
const mods = {}
r.keys().forEach(element => {
Expand Down Expand Up @@ -169,7 +169,7 @@ export function JsonToTable({ children, versionedSchema }) {
filterable: true
},].concat(columns)

// generate the rows of data from the properties
// generate the rows of data from the properties
const rows = Object.keys(properties).map((list, index) => (
{ id: index, variableName: list.substring(10), longDescription: properties[list].longDescription, default: properties[list].packageDefault, group: properties[list].group, warehouse: properties[list].warehouse }
))
Expand Down
2 changes: 1 addition & 1 deletion src/components/MarkdownTableAsMui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { DataGridPremium } from '@mui/x-data-grid-premium';
import { LicenseInfo } from '@mui/x-license-pro';

LicenseInfo.setLicenseKey("a3d6a1e3cdca760ace01b65d01608642Tz03MTE1NixFPTE3MjE1NDQ2NzEwMDAsUz1wcmVtaXVtLExNPXN1YnNjcmlwdGlvbixLVj0y");
LicenseInfo.setLicenseKey(process.env.PUBLIC_MUI_LICENSE_KEY);

const MarkdownTableToMuiDataGrid = (markdownTable, datagridProps = {}) => {
// Split the markdown table into rows
Expand Down