Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update UI #201

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/(admin)/admin/link/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function Shortener({
const { user } = session!;
const links = (await findAllLinks(
{
user_id: user?.role == "SuperAdmin" ? undefined : user?.id
user_id: user?.role == "SuperAdmin" ? undefined : user?.id,
},
parseInt(searchParams.page ?? "1"),
)) as PaginatedResult<LinkWithCountAndUser>;
Expand Down
4 changes: 3 additions & 1 deletion src/app/(admin)/admin/posts/_components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export default function PostTable({ data }: { data: PostWithTagsAndUser[] }) {
Published
</span>
) : (
<span className="bg-red-100 text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-3">Draft</span>
<span className="bg-red-100 text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-3">
Draft
</span>
),
sortable: true,
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/(admin)/admin/posts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function PostPanel({
<div>
<H2 className="font-semibold">Posts Blog </H2>
<P>Share your organ activity, event, or promotion </P>
</div>
</div>
<div>
<FullPrimaryLinkButton href="/admin/form/new">
<div className="flex items-center">
Expand Down
3 changes: 2 additions & 1 deletion src/app/(admin)/admin/users/_components/AddUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default function AddUser() {
/>
</svg>
Add User
</div></span>
</div>
</span>
</button>
</>
);
Expand Down