Skip to content

Commit

Permalink
Merge pull request #122 from flagship-io/demo-example
Browse files Browse the repository at this point in the history
Demo example
  • Loading branch information
Heihokon authored Jul 3, 2024
2 parents 1d321f4 + 8035a44 commit 6010e84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Binary file added demo/public/duvet_cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Item } from "./Item";
import { Container } from "@mui/material";
import { useState } from "react";
import { VipSwitch } from "./VipSwitch";
import { Loading } from "./Loading";

function App() {
const [isVip, setIsVip] = useState(false);
Expand All @@ -22,6 +23,7 @@ function App() {
fs_is_vip: isVip,
},
}}
loadingComponent={<Loading />}
>
<Item />
</FlagshipProvider>
Expand Down
5 changes: 5 additions & 0 deletions demo/src/Loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { CircularProgress } from "@mui/material";

export function Loading() {
return (<CircularProgress />);
}
2 changes: 1 addition & 1 deletion demo/src/itemData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const itemData = {
subtitle: "Eloge floral",
refNumber: "Ref: 123456",
price: "€99.99",
imageUrl: "https://source.unsplash.com/white-and-grey-bedroom-interior-Cx188P-L_HY",
imageUrl: "./duvet_cover.jpg",
imageAlt: "Contemplative Reptile",
imageTitle: "Contemplative Reptile",
discountPrice: "€79.99",
Expand Down

0 comments on commit 6010e84

Please sign in to comment.