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

Proposals to make amberflo work #1

Open
wants to merge 1 commit into
base: amberflo
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@amberflo/uikit": "^1.10.1",
"@amberflo/uikit": "^1.11.0",
"@frontegg/react": "^5.0.30",
"history": "^5.3.0",
"react": "^18.2.0",
Expand Down
3 changes: 2 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const routes = createRoutesFromElements(
>
<Route path="" element={<PublicRoutePage/>}/>
<Route path="private-route" element={<ProtectRoute><PrivateRoutePage/></ProtectRoute>}/>
<Route path="/amberflo" element={<Amberflo/>}/>
{/* I had to remove the initial `/` to make it work */}
<Route path="amberflo" element={<Amberflo/>}/>
</Route>
);

Expand Down
12 changes: 6 additions & 6 deletions src/routes/amberflo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import {
AmberfloProvider,
UsageByMeterLineGraph,
UsageByMeterTable
} from "@amberflo/uikit";
// import from 'components'
} from "@amberflo/uikit/components";
// Though the above imports work, instead of doing that
// we suggest you to import components like this:
// import { AmberfloProvider } from "@amberflo/uikit/components/molecules";
// import { UsageByMeterLineGraph } from "@amberflo/uikit/components/organisms/UsageByMeterLineGraph";
// import { UsageByMeterTable } from "@amberflo/uikit/components/organisms/UsageByMeterTable";
import "../styles/amberflo.css";

// import "../styles/amberflo.css";

export default function Amberflow() {
return (
<div className="wrapper">
Expand All @@ -21,10 +22,9 @@ import {
fontSize: 16
}}
>
<UsageByMeterLineGraph graphTextColor="white" />
<UsageByMeterLineGraph graphTextColor='red' />
<UsageByMeterTable />
</AmberfloProvider>
</div>
);
}

Loading