From 7338bdd47aae4b37f76c71d6eccbdf30410693c7 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 11 Feb 2022 10:40:22 -0800 Subject: [PATCH] Automatically sort Tailwind classes with Prettier (#45) * Add Prettier Tailwind plugin * Autoformat Tailwind classes with Prettier --- web/components/add-funds-button.tsx | 12 +++++----- web/components/advanced-panel.tsx | 8 +++---- web/components/amount-input.tsx | 8 +++---- web/components/avatar.tsx | 4 ++-- web/components/bet-panel.tsx | 8 +++---- web/components/bet-row.tsx | 12 +++++----- web/components/bets-list.tsx | 22 ++++++++--------- web/components/contract-card.tsx | 16 ++++++------- web/components/contract-feed.tsx | 26 ++++++++++---------- web/components/contract-overview.tsx | 12 +++++----- web/components/contracts-list.tsx | 6 ++--- web/components/create-fold-button.tsx | 4 ++-- web/components/datetime-tooltip.tsx | 2 +- web/components/edit-fold-button.tsx | 6 ++--- web/components/feed-create.tsx | 8 +++---- web/components/fold-tag.tsx | 2 +- web/components/leaderboard.tsx | 4 ++-- web/components/loading-indicator.tsx | 4 ++-- web/components/manifold-logo.tsx | 8 +++---- web/components/menu.tsx | 6 ++--- web/components/nav-bar.tsx | 32 ++++++++++++------------- web/components/page.tsx | 2 +- web/components/profile-menu.tsx | 6 ++--- web/components/resolution-panel.tsx | 2 +- web/components/site-link.tsx | 4 ++-- web/components/tags-input.tsx | 2 +- web/components/tags-list.tsx | 16 ++++++------- web/components/title.tsx | 2 +- web/components/tweet-button.tsx | 2 +- web/components/yes-no-selector.tsx | 20 ++++++++-------- web/package.json | 1 + web/pages/404.tsx | 2 +- web/pages/[username]/[contractSlug].tsx | 4 ++-- web/pages/_document.tsx | 2 +- web/pages/account.tsx | 6 ++--- web/pages/activity.tsx | 2 +- web/pages/add-funds.tsx | 10 ++++---- web/pages/create.tsx | 22 ++++++++--------- web/pages/fold/[...slugs]/index.tsx | 22 ++++++++--------- web/pages/folds.tsx | 14 +++++------ web/pages/home.tsx | 10 ++++---- web/pages/landing-page.tsx | 32 ++++++++++++------------- web/pages/leaderboards.tsx | 2 +- web/pages/make-predictions.tsx | 26 ++++++++++---------- web/pages/markets.tsx | 4 ++-- web/pages/profile.tsx | 8 +++---- web/pages/simulator.tsx | 12 +++++----- yarn.lock | 5 ++++ 48 files changed, 228 insertions(+), 222 deletions(-) diff --git a/web/components/add-funds-button.tsx b/web/components/add-funds-button.tsx index 3903f079..d17d89ce 100644 --- a/web/components/add-funds-button.tsx +++ b/web/components/add-funds-button.tsx @@ -20,7 +20,7 @@ export function AddFundsButton(props: { className?: string }) {