Skip to content
New issue

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

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

Already on GitHub? # to your account

fixing # error and text on my tasks #241

Merged
merged 1 commit into from
Mar 14, 2025
Merged
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
4 changes: 2 additions & 2 deletions apps/console/src/components/pages/auth/#/#.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ const TEMP_PASSKEY_NAME = 'Temp User'

export const #Page = () => {
const router = useRouter()
const [registrationErrorMessage, setRegistrationErrorMessage] = useState('There was an error. Please try again.')
const [registrationErrorMessage, setRegistrationErrorMessage] = useState('')
const [isLoading, setIsLoading] = useState<boolean>(false)
const showLoginError = !isLoading && !!setRegistrationErrorMessage
const [isPasswordActive, setIsPasswordActive] = useState(false)
const { separator, buttons, keyIcon, form, input } = #Styles()

const showLoginError = !isLoading && !!registrationErrorMessage
/**
* Setup Github Authentication
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const MyTaskContent = ({ userId }: { userId: string }) => {
return (
//TODO: add size fit when we have pending actions, currently no api
<Card>
<CardTitle className="text-lg font-semibold">My Task</CardTitle>
<CardTitle className="text-lg font-semibold">My Tasks</CardTitle>
<CardContent className="flex flex-col items-center text-center">
<div className="grid grid-cols-2 gap-6 mb-6 w-full">
<div className="flex flex-col items-center justify-center py-4 px-8 border rounded-lg w-40">
Expand All @@ -58,7 +58,7 @@ const MyTaskContent = ({ userId }: { userId: string }) => {
</div>
</div>
<p className="text-lg font-medium">🎉 Yay! You're all caught up!</p>
<p>No tasks to do—enjoy the peace and quiet.</p>
<p className="text-sm text-muted-foreground mt-1">No tasks to do—enjoy the peace and quiet.</p>
</CardContent>
</Card>
)
Expand All @@ -67,7 +67,7 @@ const MyTaskContent = ({ userId }: { userId: string }) => {
return (
//TODO: add size fit when we have pending actions, currently no api
<Card>
<CardTitle className="text-lg font-semibold">My Task</CardTitle>
<CardTitle className="text-lg font-semibold">My Tasks</CardTitle>
<CardContent>
<div className="grid grid-cols-2 gap-12 mb-7">
<div className="flex flex-col items-center justify-center py-4 px-8 border rounded-lg relative">
Expand Down Expand Up @@ -122,7 +122,7 @@ const MyTask = ({ status = 'default' }) => {
return (
//TODO: add size fit when we have pending actions, currently no api
<Card>
<CardTitle className="text-lg font-semibold">My Task</CardTitle>
<CardTitle className="text-lg font-semibold">My Tasks</CardTitle>
<CardContent className="text-center text-red-500">Error: No user found</CardContent>
</Card>
)
Expand All @@ -133,7 +133,7 @@ const MyTask = ({ status = 'default' }) => {
fallback={
//TODO: add size fit when we have pending actions, currently no api
<Card>
<CardTitle className="text-lg font-semibold">My Task</CardTitle>
<CardTitle className="text-lg font-semibold">My Tasks</CardTitle>
<CardContent className="text-center">Loading...</CardContent>
</Card>
}
Expand Down