fix styles

This commit is contained in:
pompurin404 2024-10-11 14:51:52 +08:00
parent eab55bc7dd
commit 48475fb0eb
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -248,7 +248,7 @@ const ProfileItem: React.FC<Props> = (props) => {
<Button
size="sm"
variant="light"
className="h-[20px] p-1 m-0"
className={`h-[20px] p-1 m-0 ${isCurrent ? 'text-primary-foreground' : 'text-foreground'}`}
onPress={async () => {
await patchAppConfig({ profileDisplayDate: 'update' })
}}
@ -259,7 +259,7 @@ const ProfileItem: React.FC<Props> = (props) => {
<Button
size="sm"
variant="light"
className="h-[20px] p-1 m-0"
className={`h-[20px] p-1 m-0 ${isCurrent ? 'text-primary-foreground' : 'text-foreground'}`}
onPress={async () => {
await patchAppConfig({ profileDisplayDate: 'expire' })
}}

View File

@ -125,7 +125,7 @@ const ProfileCard: React.FC = () => {
<Button
size="sm"
variant="light"
className="h-[20px] p-1 m-0"
className={`h-[20px] p-1 m-0 ${match ? 'text-primary-foreground' : 'text-foreground'}`}
onPress={async () => {
await patchAppConfig({ profileDisplayDate: 'update' })
}}
@ -136,7 +136,7 @@ const ProfileCard: React.FC = () => {
<Button
size="sm"
variant="light"
className="h-[20px] p-1 m-0"
className={`h-[20px] p-1 m-0 ${match ? 'text-primary-foreground' : 'text-foreground'}`}
onPress={async () => {
await patchAppConfig({ profileDisplayDate: 'expire' })
}}