Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Oct 19, 2023
1 parent 8a7e0c5 commit 9c8807d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/StandWithUkraine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import s from './styles.css';
export const StandWithUkraine: FC = () => (
<div className={s.swu_box}>
<svg aria-label="stand with ukraine" viewBox="0 0 3 2" width="1.4em">
<path d="M0 0h3v1H0z" fill="#005bbb"></path>
<path d="M0 1h3v1H0z" fill="#ffd500"></path>
<path d="M0 0h3v1H0z" fill="#005bbb" />
<path d="M0 1h3v1H0z" fill="#ffd500" />
</svg>
<a
href="https://www.wix.com/stands-with-ukraine"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconCancel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const IconCancel: FC = () => (
<svg
fill="currentColor"
fill="currentcolor"
width="12"
height="12"
viewBox="0 0 8 8"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconCopyLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const IconCopyLink: FC = () => (
<svg
fill="currentColor"
fill="currentcolor"
width="24"
height="24"
viewBox="0 0 18 18"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const IconDownload: FC = () => (
<svg
width="24"
height="24"
fill="currentColor"
fill="currentcolor"
aria-hidden="true"
>
<path
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconPlus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const IconPlus: FC = () => (
<svg
width="24"
height="24"
fill="currentColor"
fill="currentcolor"
aria-hidden="true"
>
<path d="M12 12V6h-1v6H5v1h6v6h1v-6h6v-1z" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconThreeDots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const IconThreeDots: FC = () => (
<svg
width="18"
height="18"
fill="currentColor"
fill="currentcolor"
viewBox="0 0 24 24"
aria-hidden="true"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IconUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const IconUpload: FC = () => (
aria-hidden="true"
>
<path
stroke="currentColor"
stroke="currentcolor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/IssueIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const IssueIcon: FC = () => (
height="20"
viewBox="0 0 16 16"
aria-hidden="true"
fill="currentColor"
fill="currentcolor"
>
<path
d="M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import ReactModal from 'react-modal';

import s from './styles.css';

export interface IModalProps {
label?: string;
interface Props {
label: string;
children: ComponentChildren;
close: () => void;
}
Expand All @@ -14,7 +14,7 @@ const ReactModalPreactTyped: ComponentClass<ReactModal.Props> = ReactModal;

ReactModal.setAppElement('#app');

export const Modal: FC<IModalProps> = ({ close, label, children }) => (
export const Modal: FC<Props> = ({ close, label, children }) => (
<ReactModalPreactTyped
isOpen
onRequestClose={close}
Expand Down

0 comments on commit 9c8807d

Please sign in to comment.