Excent version info
This commit is contained in:
@@ -39,7 +39,7 @@ export const VersionInfo = ({
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const { data } = useSWR<Commit[]>(
|
const { data } = useSWR<Commit[]>(
|
||||||
'https://api.github.com/repos/meshtastic/meshtastic-web/commits?per_page=10',
|
'https://api.github.com/repos/meshtastic/meshtastic-web/commits?per_page=100',
|
||||||
fetcher,
|
fetcher,
|
||||||
{
|
{
|
||||||
revalidateOnFocus: false,
|
revalidateOnFocus: false,
|
||||||
@@ -67,12 +67,12 @@ export const VersionInfo = ({
|
|||||||
onClose();
|
onClose();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col gap-1 dark:text-white">
|
<div className="flex h-96 flex-col gap-1 overflow-y-auto dark:text-white">
|
||||||
{data &&
|
{data &&
|
||||||
data.map((commit) => (
|
data.map((commit) => (
|
||||||
<div
|
<div
|
||||||
key={commit.sha}
|
key={commit.sha}
|
||||||
className={`flex gap-2 rounded-md p-1 ${
|
className={`flex gap-2 rounded-md py-1 px-2 ${
|
||||||
commit.sha.substring(0, 7) === process.env.COMMIT_HASH
|
commit.sha.substring(0, 7) === process.env.COMMIT_HASH
|
||||||
? 'bg-primary'
|
? 'bg-primary'
|
||||||
: 'dark:bg-secondaryDark'
|
: 'dark:bg-secondaryDark'
|
||||||
|
|||||||
Reference in New Issue
Block a user