Add a badge on locations for new photos
- The last updated date is taken from the latest photo of each location (without any other API call, just some data manipulation) - Manipulation of data in the preload request instead of the code
This commit is contained in:
9
src/atoms/Badge.svelte
Normal file
9
src/atoms/Badge.svelte
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>
|
||||
// Props
|
||||
export let text
|
||||
export let size = 'small'
|
||||
</script>
|
||||
|
||||
<div class="badge badge--{size}">
|
||||
<span>{text}</span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user