Skip to content

Commit

Permalink
Update components to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
callmekatootie committed Aug 28, 2023
1 parent f5856ed commit dd9fb01
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function CloseOutlineSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function CloseOutlineSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function EnvelopeOutlineSVG({ className }) {
import { SVGIconProps } from ".";

export default function EnvelopeOutlineSVG({ className }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function HeartOutlineSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function HeartOutlineSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function HeartSolidSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function HeartSolidSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function PlusSolidSVG({ className }) {
import { SVGIconProps } from ".";

export default function PlusSolidSVG({ className }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function RefreshSolidSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function RefreshSolidSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function ReplyOutlineSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function ReplyOutlineSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function RepostOutlineSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function RepostOutlineSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function TrashOutlineSVG({ className, onClick }) {
import { SVGIconProps } from ".";

export default function TrashOutlineSVG({ className, onClick }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function UserOutlineSVG({ className }) {
import { SVGIconProps } from ".";

export default function UserOutlineSVG({ className }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function UserSolidSVG({ className }) {
import { SVGIconProps } from ".";

export default function UserSolidSVG({ className }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function VerifiedSolidSVG({ className }) {
import { SVGIconProps } from ".";

export default function VerifiedSolidSVG({ className }: SVGIconProps) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MouseEventHandler } from "react";
import CloseOutlineSVG from "./CloseOutline";
import EnvelopeOutlineSVG from "./EnvelopeOutline";
import HeartOutlineSVG from "./HeartOutline";
Expand All @@ -11,6 +12,11 @@ import UserOutlineSVG from "./UserOutline";
import UserSolidSVG from "./UserSolid";
import VerifiedSolidSVG from "./VerifiedSolid";

export type SVGIconProps = {
className: string,
onClick?: MouseEventHandler
}

export {
CloseOutlineSVG,
EnvelopeOutlineSVG,
Expand Down

0 comments on commit dd9fb01

Please sign in to comment.