Skip to content

Commit

Permalink
display transcript's directory during selection
Browse files Browse the repository at this point in the history
directory (`loc`) provides additional information about the transcript
  • Loading branch information
kouloumos authored and Extheoisah committed Nov 17, 2023
1 parent f511765 commit fd726fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/tables/QueueTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ const QueueTable = () => {
title={data.content.title}
allTags={allTags}
categories={data.content.categories}
loc={data.content.loc}
id={data.id}
length={allTags.length}
shouldSlice={false}
Expand Down
7 changes: 6 additions & 1 deletion src/components/tables/TitleWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type TitleWithTagsProps = {
title: string;
id: number;
categories: string | string[];
loc?: string;
allTags: string[];
length: number;
shouldSlice?: boolean;
Expand All @@ -17,6 +18,7 @@ const TitleWithTags = ({
title,
allTags,
categories,
loc,
id,
length,
shouldSlice = true,
Expand All @@ -33,7 +35,10 @@ const TitleWithTags = ({
return (
<Td width="40%">
<Flex gap={2} flexDir="column">
<Text>{title}</Text>
<Box>
<Text>{title}</Text>
<Text fontSize={["0.7rem"]} color="gray.500">{loc}</Text>
</Box>
<Flex wrap="wrap" gap={2} alignItems="center">
{foundCategories && (
<Box
Expand Down

0 comments on commit fd726fc

Please sign in to comment.