Skip to content

Commit 68e5bb3

Browse files
Removing images until I update to React18.
1 parent 523a5ee commit 68e5bb3

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/Pages/ProjectsPage/PGASGame.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { Paragraph } from "../../Components/Paragraph";
22

3-
import LevelsSS from "@assets/PGAS24_LevelsSS.png";
4-
import MainMenuSS from "@assets/PGAS24_MainMenuSS.png";
5-
import PowerupSS from "@assets/PGAS24_PowerupSS.png";
6-
import WarningSS from "@assets/PGAS24_WarningSS.png";
7-
83
export default function PGASGame(){
94
function getImageUrl(file: string) {
105
return new URL(`${file}`, import.meta.url).href
@@ -38,12 +33,9 @@ export default function PGASGame(){
3833
</Paragraph>
3934

4035
<h2 className="text-xl">Images</h2>
36+
<p>Not yet, I need to update to React18.</p>
4137
<div className="grid gap-1 grid-cols-1 md:grid-cols-2">
42-
<img src={getImageUrl(LevelsSS)} alt="LevelSS.png"/>
43-
<img src={getImageUrl(MainMenuSS)} alt="MainMenuSS.png"/>
44-
<img src={getImageUrl(PowerupSS)} alt="PowerupSS.png"/>
45-
<img src={getImageUrl(WarningSS)} alt="WarningSS.png"/>
46-
</div>
38+
</div>
4739
</article>
4840
</div>
4941
}

vite.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,4 @@ import path from 'path';
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
assetsInclude: ["**/*.PNG", "assets/*"],
9-
10-
resolve: {
11-
alias: {
12-
"@assets": path.resolve(__dirname, "./src/assets")
13-
}
14-
}
158
})

0 commit comments

Comments
 (0)