Update GeneralSettings.jsx to adjust error and loading conditions
This commit is contained in:
@@ -746,13 +746,13 @@ export default function GeneralSettings({
|
|||||||
{changelogError && (
|
{changelogError && (
|
||||||
<p className="setting-status error">{changelogError}</p>
|
<p className="setting-status error">{changelogError}</p>
|
||||||
)}
|
)}
|
||||||
{!changelogError && isLoadingChangelog && (
|
{isLoadingChangelog && (
|
||||||
<p className="setting-status neutral">Loading changelog...</p>
|
<p className="setting-status neutral">Loading changelog...</p>
|
||||||
)}
|
)}
|
||||||
{!changelogError && !isLoadingChangelog && changelogEntries.length === 0 && (
|
{!isLoadingChangelog && !changelogError && changelogEntries.length === 0 && (
|
||||||
<p className="setting-description">No commits found.</p>
|
<p className="setting-description">No commits found.</p>
|
||||||
)}
|
)}
|
||||||
{!changelogError && changelogEntries.length > 0 && (
|
{changelogEntries.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<ul className="changelog-list">
|
<ul className="changelog-list">
|
||||||
{changelogEntries.map((entry) => {
|
{changelogEntries.map((entry) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user