Skip to content

Commit

Permalink
refactor store
Browse files Browse the repository at this point in the history
  • Loading branch information
gcor committed Jan 7, 2024
1 parent 44b1db5 commit 6902c2c
Show file tree
Hide file tree
Showing 176 changed files with 29,442 additions and 5,492 deletions.
13 changes: 11 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
"project": "./tsconfig.json"
},
"rules": {
"react-hooks/exhaustive-deps": "error",

"@next/next/no-img-element": "off",

// TODO: remove this rule
"@typescript-eslint/no-explicit-any": "off",
// TODO: remove this rule
"@typescript-eslint/ban-ts-comment": "off",
// TODO: remove this rule

"jsx-a11y/click-events-have-key-events": "off",
// TODO: remove this rule
"jsx-a11y/no-static-element-interactions": "off",

"no-irregular-whitespace": "off",
Expand Down Expand Up @@ -57,6 +58,14 @@
{ "from": "./state", "target": "./components" },
{ "from": "./constants", "target": "./components" },
{ "from": "./features", "target": "./components" }

// { "from": "./constants", "target": "./map" },
// { "from": "./state", "target": "./map" },
// { "from": "./styles", "target": "./map" },
// { "from": "./shared", "target": "./map" },
// { "from": "./pages", "target": "./map" },
// { "from": "./features", "target": "./map" },
// { "from": "./components", "target": "./map" }
]
}
]
Expand Down
53 changes: 0 additions & 53 deletions components/Card/Card.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions components/Card/DesktopCard/DesktopCard.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions components/Card/MobileCard.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions components/Card/components/ConstructionInfo/ConstructionInfo.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions components/Card/components/Header/Header.module.css

This file was deleted.

62 changes: 0 additions & 62 deletions components/Card/components/Header/Header.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions components/Card/components/Section/Section.module.css

This file was deleted.

7 changes: 0 additions & 7 deletions components/Card/components/Section/Section.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions components/Card/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions components/DesktopCard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React, { ReactNode } from 'react';
import { Close } from 'components/Close';
import styles from './DesktopCard.module.css';

interface Props {
popupHash?: string;
children: ReactNode;
closePopup: () => void;
}

export function DesktopCard({ popupHash, children, closePopup }: Props) {
if (!popupHash) {
return <></>;
}

return (
<div className={styles.DesktopCard}>
<div className={styles.DesktopCard__header}>
<Close close={closePopup} />
</div>
{children}
</div>
);
}
63 changes: 0 additions & 63 deletions components/Filters/Filters.tsx

This file was deleted.

1 change: 0 additions & 1 deletion components/Filters/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions constants/colors.ts

This file was deleted.

1 change: 0 additions & 1 deletion constants/map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const MIN_ZOOM = 11;
export const MAX_ZOOM = 20;
export const BUILDING_LAYER_ID = 'building';
export const CENTER_COORDS: [number, number] = [60.605, 56.838011];
Loading

1 comment on commit 6902c2c

@ekbdev
Copy link

@ekbdev ekbdev commented on 6902c2c Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for map ready!

✅ Preview
https://map-pp8y8pbpy-ekbdev.vercel.app
https://ekbdev-map-refactor3.vercel.app

Built with commit 6902c2c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.