Skip to content

Commit

Permalink
Merge pull request #3 from luzmo-official/fix_remove_unnecessary_auth…
Browse files Browse the repository at this point in the history
…orization

fix: remove unnecessary authorization information
  • Loading branch information
KrijnL authored Aug 27, 2024
2 parents 150dc46 + c926834 commit 8a04cf3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions drag-n-drop-chart-library/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from "react";
import flexConfig from "./Reference/FlexConfig";
import FlexComponent from "./Components/FlexComponent";
import { Rnd } from "react-rnd";
import ChartDrawer from "./Components/ChartDrawer";
Expand Down Expand Up @@ -48,7 +47,6 @@ export default function App() {
minHeight={50}
bounds="window">
<FlexComponent
flexAuthorization={flexConfig.authorization}
flexOptions={flexOptions}
/>
</Rnd>
Expand Down
4 changes: 1 addition & 3 deletions drag-n-drop-chart-library/src/Components/FlexComponent.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

import { LuzmoVizItemComponent } from "@luzmo/react-embed";

export default function FlexComponent ({ flexAuthorization, flexOptions }) {
export default function FlexComponent ({ flexOptions }) {
return (
<LuzmoVizItemComponent
authKey={flexAuthorization.authKey}
authToken={flexAuthorization.authToken}
type={flexOptions.type}
options={flexOptions.options}
slots={flexOptions.slots}
Expand Down
5 changes: 0 additions & 5 deletions drag-n-drop-chart-library/src/Reference/FlexConfig.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
const flexConfig = {
authorization: {
authKey: "4d68bdd1-78fd-4568-ae83-668bf5c2e98d",
authToken:
"JguF61WZwDOXB8j1lkAYoa98nftW2Z8CvEQllldunQ8hI6ho5DLuO275HwQbR2n8UiexIwfc5Jbxn4rJ5CN9hblTkaYzTYnS3X3UTCJiYixwgG97qYZVZ1TJr29xcfsvweh1gCYXGMsbwlEPUMShed",
},
chartList: [
{
title: "Total Sales Volume",
Expand Down

0 comments on commit 8a04cf3

Please sign in to comment.