Skip to content

Commit

Permalink
Fix sources
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriiPrudnikov committed Nov 6, 2023
1 parent 9d076b0 commit 6ba81be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions components/Layers/DesignCode/CardContent/CardContent.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from 'react';

import { Section } from 'components/UI/Card/components/Section/Section';
import { Header } from 'components/UI/Card/components/Header/Header';
import { Label } from 'components/UI/Card/components/Label/Label';
import { Section } from 'components/UI/Card/components/Section/Section';

import { DESIGN_MAP_HOST } from 'components/Layers/DesignCode/designCode';
import styles from 'styles/CardContent.module.css';
import { Sources } from 'components/UI/Card/components/Sources/Sources';
import { DESIGN_CODE_MARKER_COLOR_BY_TYPE } from '../MapData/MapData.constants';

import { DesignCodeObject } from '../designCodeObject';
Expand Down Expand Up @@ -44,6 +43,9 @@ export function DesignCodeCardContent({ placemark }: { placemark?: DesignCodeObj
);
})}
</Section>
<Section>
<Sources sources={['ekaterinburgdesign']} />
</Section>
</div>
) : null;
}
2 changes: 1 addition & 1 deletion components/Layers/Houses/CardContent/CardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export function HousesCardContent() {
</Section>
)}
<Section>
<Sources sources={['howoldthishouse', 'mingkh', 'domaekb']} />
<Sources sources={['osm', 'howoldthishouse', 'mingkh', 'domaekb']} />
</Section>
<Section>
<EditObjectButtonLink address={placemark?.attributes.Address} />
Expand Down
2 changes: 1 addition & 1 deletion components/UI/Card/components/Sources/Sources.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

@media screen and (width >= 1440px) {
.sources__title {
font-size: 18px;
font-size: 16px;
}
}
5 changes: 5 additions & 0 deletions constants/sources.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export const SOURCES_BY_TYPE = {
osm: {
name: 'OpenStreetMap',
link: 'https://www.openstreetmap.org/',
data: null,
},
okn: {
name: 'Объекты культурного наследия Свердловской области',
link: 'https://okn.midural.ru/kategorii/obekty-kulturnogo-naslediya-sverdlovskoy-oblasti',
Expand Down

1 comment on commit 6ba81be

@ekbdev
Copy link

@ekbdev ekbdev commented on 6ba81be Nov 6, 2023

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-enf16rc1d-ekbdev.vercel.app
https://ekbdev-map-feature-kvartalnye.vercel.app

Built with commit 6ba81be.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.