Skip to content
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
1 change: 1 addition & 0 deletions assets/reactjs-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/@types/image.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module '*.png';
declare module '*.jpeg';
declare module '*.jpg';
declare module '*.gif';
declare module '*.gif';
declare module '*.svg';
3 changes: 2 additions & 1 deletion src/components/Greetings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Button } from '../Button'
import { Container, Image, Text } from './styles'
import ReactIcon from '../../../assets/reactjs-icon.svg';

export function Greetings() {
function handleSayHello() {
Expand All @@ -11,7 +12,7 @@ export function Greetings() {
return (
<Container>
<Image
src="https://www.vectorlogo.zone/logos/reactjs/reactjs-icon.svg"
src={ReactIcon}
alt="ReactJS logo"
/>
<Text>An Electron boilerplate including TypeScript, React, Jest and ESLint.</Text>
Expand Down
2 changes: 1 addition & 1 deletion webpack/rules.webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = [
}
},
{
test: /\.(png|jpe?g|gif)$/i,
test: /\.(png|jpe?g|gif|svg)$/i,
loader: 'file-loader',
options: {
name: '[path][name].[ext]',
Expand Down