on master help sign in
pages/id: use data.tile for group cards
commitbe7ff1b568451f7d954a6ced06e8b329ee3d0020 authorMatilde Park <matilde.park@urbit.org> dateFri 29 Apr 2022, 12:40 (4 years ago) parent8d16c9f
1 file changed+2−2
pages/ids/[id].js+2−2
pages/ids/[id].js+2−2
@@ -180,7 +180,7 @@ const Creations = ({ id, title, data, type }) => {
180180 shortcode={`${id}/${each.slug}`}
181181 title={each.title}
182182 color={each.bgColor}
183− image={each.image}
183+ image={type === "group" ? each.tile : each.image}
184184 />
185185 ))}
186186 </div>
@@ -207,7 +207,7 @@ export const getServerSideProps = async ({ params, res }) => {
207207 ["title", "slug", "image", "bgColor"],
208208 `applications/${params.id}`
209209 );
210− const groups = getAllPosts(["title", "slug", "image"], `groups/${params.id}`);
210+ const groups = getAllPosts(["title", "slug", "tile"], `groups/${params.id}`);
211211
212212 if (!data.ship && ob.isValidPatp(params.id)) {
213213 data = { ship: params.id, description: "An Urbit ID." };