Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/KATITB22/ohu-fe
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonk19 committed Aug 26, 2022
2 parents 43f89c8 + fcf7d04 commit 4de6401
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/map-tour/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,18 @@ interface Props {
// eslint-disable-next-line no-unused-vars
setMap: (map: Map) => void | null;
}

const list = [
'Genshiken',
'Paduan Suara Mahasiswa ITB',
'Unit Kebudayaan Tionghoa ITB'
];

export const TourMap = ({ data, setMap }: Props) => {
const MapMarker = ({ id, position, name, coloredIcon }: MarkerData) => {
const Icon = L.icon({
iconUrl: coloredIcon,
iconSize: [45, 45]
iconSize: list.includes(name) ? [60, 60] : [45, 45]
});
return (
<Marker icon={Icon} position={position}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Leaderboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const Leaderboards = () => {
) : meta.total <= 0 || currentPage > meta.pageCount ? (
<ErrorNotFoundPage message="No Data" />
) : (
<ErrorNotFoundPage message="Perhatikan Input Kamu Kembali" />
<ErrorNotFoundPage message="Sepertinya ada yang salah" />
)}
</Flex>
</PageLayout>
Expand Down

0 comments on commit 4de6401

Please sign in to comment.