From 853bf8b1b9d23b812148a2be9b4472a47c370993 Mon Sep 17 00:00:00 2001 From: freeman-lab Date: Fri, 28 Jan 2022 09:52:45 -0800 Subject: [PATCH] improve build size --- pages/_app.js | 4 ++-- posts/maps-library-release.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index 43ae393..3e65dbe 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -4,11 +4,11 @@ import '@carbonplan/components/fonts.css' import '@carbonplan/components/globals.css' import '@carbonplan/maps/mapbox.css' import theme from '@carbonplan/theme' -import { LiveCode, Pre } from '@carbonplan/prism' +import { Code, Pre } from '@carbonplan/prism' import Blockquote from '../components/blockquote' const components = { - code: LiveCode, + code: Code, pre: Pre, blockquote: Blockquote, } diff --git a/posts/maps-library-release.md b/posts/maps-library-release.md index 7f85415..5f03479 100644 --- a/posts/maps-library-release.md +++ b/posts/maps-library-release.md @@ -53,7 +53,7 @@ We've released an open-source library called [`@carbonplan/maps`](https://github For the simplest possible example, the following code renders a 2D map of global temperature with a coastline. -```js +```jsx import { Map, Raster, Line } from '@carbonplan/maps' import { useColormap } from '@carbonplan/colormaps' @@ -98,7 +98,7 @@ The source data is a Zarr group with temperature data from [WorldClim](https://w With the same component, we can just as easily render a 4D map where the third dimension is the month and the fourth dimension is temperature or precipitation (labeled “band”). Pointing to this dataset, the `Raster` component becomes the following. -```js +```jsx ), it lets us combine data layers via arbitrarily complex math, with high performance and full control over what gets rendered. Here’s a `Raster` component that demos this approach. -```js +```jsx