-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d91958b
commit a99e161
Showing
8 changed files
with
57 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
web/src/components/site/Navigation/Navpill/components/SearchResults.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { PostProps } from "src/api/openapi/schemas"; | ||
import { ListItem, OrderedList, Text } from "src/theme/components"; | ||
|
||
import { styled } from "@/styled-system/jsx"; | ||
|
||
type Props = { | ||
results: PostProps[]; | ||
}; | ||
export function SearchResults(props: Props) { | ||
return ( | ||
<OrderedList m={0}> | ||
<styled.ol m="0"> | ||
{props.results.map((v) => ( | ||
<ListItem key={v.id}> | ||
<Text>{v.body}</Text> | ||
</ListItem> | ||
<styled.li key={v.id}> | ||
<p>{v.body}</p> | ||
</styled.li> | ||
))} | ||
</OrderedList> | ||
</styled.ol> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import { LinkProps, Text } from "src/theme/components"; | ||
import { styled } from "@/styled-system/jsx"; | ||
|
||
import { Anchor } from "./Anchor"; | ||
|
||
type Props = { | ||
created: string; | ||
updated?: string | undefined; | ||
} & LinkProps; | ||
href?: string; | ||
}; | ||
|
||
export function Timestamp({ created, updated, ...props }: Props) { | ||
return ( | ||
<Text as="span"> | ||
<styled.span> | ||
{props.href ? ( | ||
<Anchor href={props.href}>{created}</Anchor> | ||
) : ( | ||
<Text as="span">{created}</Text> | ||
<styled.span>{created}</styled.span> | ||
)} | ||
{updated && <> (updated {updated})</>} | ||
</Text> | ||
</styled.span> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a99e161
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
storyden – ./web
storyden.vercel.app
makeroom.club
storyden-git-main-southclaws.vercel.app
storyden-southclaws.vercel.app
demo.storyden.org
www.makeroom.club
a99e161
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
storyden-homepage – ./home
storyden-homepage-southclaws.vercel.app
storyden-homepage.vercel.app
storyden-homepage-git-main-southclaws.vercel.app
www.storyden.org
storyden.org