Skip to content

Commit

Permalink
fix import svg files in components
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Jul 13, 2023
1 parent ab79d14 commit f63494a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.svg' {
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
export default content;
}
1 change: 1 addition & 0 deletions src/pages/_error.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { NextPageContext, NextComponentType } from 'next';
import Image from 'next/image';
import notFounded from '../assets/svg/404.svg';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/communityHealth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SEO from '../components/global/SEO';
function communityHealth() {
return (
<>
<SEO titleTemplate="Member interactions" />
<SEO titleTemplate="Community Health" />
<div className="flex flex-col container justify-between px-4 md:px-12 py-3">
communityHealth
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/membersInteraction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function membersInteraction() {

return (
<>
<SEO titleTemplate="Member interactions" />
<SEO titleTemplate="Member Interactions" />
<div className="flex flex-col container justify-between px-4 md:px-12 py-3">
<Link to="/" className="mb-3">
<div className="flex items-center text-gray-subtitle text-base hover:text-black">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/statistics.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import moment from 'moment';

import CustomTab from '../components/global/CustomTab';
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"**/*.ts",
"**/*.tsx",
"jest.config.js",
"jest.setup.js"
"jest.setup.js",
"src/components",
"custom.d.ts"
],
"exclude": ["node_modules", "./src/components/global/CustomDatePicker.tsx"]
}

0 comments on commit f63494a

Please sign in to comment.