fix(docs): wrong location for images
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m39s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m39s
This commit is contained in:
BIN
frontend/public/imgs/docs/mobile/test2-1.png
Normal file
BIN
frontend/public/imgs/docs/mobile/test2-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -3,17 +3,20 @@
|
||||
import { Separator } from "../../components/ui/separator";
|
||||
|
||||
// image imports
|
||||
const images = import.meta.glob("/src/imgs/docs/mobile/*.{png,jpg,jpeg,webp}", {
|
||||
eager: true,
|
||||
query: "w=300;600;1200&format=webp",
|
||||
import: "default",
|
||||
}) as Record<string, string>;
|
||||
const images = import.meta.glob(
|
||||
"/public/imgs/docs/mobile/*.{png,jpg,jpeg,webp}",
|
||||
{
|
||||
eager: true,
|
||||
query: "w=300;600;1200&format=webp",
|
||||
import: "default",
|
||||
},
|
||||
) as Record<string, string>;
|
||||
|
||||
const server = window.LST_CONFIG?.server;
|
||||
|
||||
const firstScan = images[`/src/imgs/docs/mobile/${server}-1.png`];
|
||||
const secondScan = images[`/src/imgs/docs/mobile/${server}-2.png`];
|
||||
const thridScan = images[`/src/imgs/docs/mobile/${server}-3.png`];
|
||||
const firstScan = images[`/public/imgs/docs/mobile/${server}-1.png`];
|
||||
const secondScan = images[`/public/imgs/docs/mobile/${server}-2.png`];
|
||||
const thirdScan = images[`/public/imgs/docs/mobile/${server}-3.png`];
|
||||
|
||||
export default function UpdateInstructions() {
|
||||
// const getFile = useMutation({
|
||||
@@ -128,9 +131,9 @@ export default function UpdateInstructions() {
|
||||
<p>Scan Commands</p>
|
||||
<Separator className="m-3" />
|
||||
<div className="flex flex-col justify-center">
|
||||
<img src={firstScan} alt="Home" className="m-3" />
|
||||
<img src={secondScan} alt="Home" className="m-3" />
|
||||
<img src={thridScan} alt="Home" className="m-3" />
|
||||
<img src={firstScan} alt="First Scan" className="m-3" />
|
||||
<img src={secondScan} alt="Second Scan" className="m-3" />
|
||||
<img src={thirdScan} alt="Third Scan" className="m-3" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user