Skip to content

Commit

Permalink
refactor: remove description prop from show-card
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Dec 16, 2023
1 parent e569613 commit 101baaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions app/shows/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { cookies } from 'next/headers';

const fetchAllShows = async () => {
const supabase = createSupabaseServerClient(cookies());
const response = await supabase
.from('show')
.select('id, title, description, images');
const response = await supabase.from('show').select('id, title, images');

return response;
};
Expand All @@ -19,7 +17,7 @@ const _fetchMyShows = async () => {
const accountId = await getAccountId();
const response = await supabase
.from('account_show_relation')
.select('id, show (title, description, images)')
.select('id, show (title, images)')
.eq('account', accountId);

return response;
Expand Down Expand Up @@ -51,7 +49,6 @@ export default async function Page() {
>
{data.map((show) => (
<ShowCard.Link
description={show.description}
href={`/shows/${show.id}`}
images={show.images}
key={show.id}
Expand Down
2 changes: 0 additions & 2 deletions components/show-card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ShowCard } from './show-card';
export const Link: StoryObj<typeof ShowCard.Link> = {
render: () => (
<ShowCard.Link
description="On Twitter at @naval."
href="/shows/naval"
images={[
'https://static.libsyn.com/p/assets/6/e/9/c/6e9cf22bfd4fc1885f2e77a3093c12a1/Podcast.png',
Expand All @@ -25,7 +24,6 @@ export const Toggle: StoryObj<typeof ShowCard.Toggle> = {

return (
<ShowCard.Toggle
description="Welcome to In Depth, a new podcast from First Round Review that’s dedicated to surfacing the tactical advice founders and startup leaders need to grow their teams, their companies and themselves. Hosted by Brett Berson, a partner at First Round, In Depth will cover a lot of ground and a wide range of topics, from hiring executives and becoming a better manager, to the importance of storytelling inside of your organization. But every interview will hit the level of tactical depth where the very best advice is found. We hope you’ll join us. Subscribe to “In Depth” now and lear..."
images={[
'https://megaphone.imgix.net/podcasts/9426cbf8-25fe-11ec-a0b4-fb6861cc1eaf/image/In_Depth_Podcast_Logo.jpeg?ixlib=rails-4.3.1&max-w=3000&max-h=3000&fit=crop&auto=format,compress',
]}
Expand Down
2 changes: 1 addition & 1 deletion components/show-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { FaCircleCheck, FaPlay } from 'react-icons/fa6';
import styles from './show-card.module.css';
import { Hover } from './ui/hover';

type Props = Pick<Tables<'show'>, 'description' | 'images' | 'title'>;
type Props = Pick<Tables<'show'>, 'images' | 'title'>;

function ShowCardImage(props: Pick<Props, 'images' | 'title'>) {
return (
Expand Down

0 comments on commit 101baaf

Please sign in to comment.