refactor: rename isOKIAwtis to isExclusiveArtist

This commit is contained in:
2026-06-26 00:34:14 +04:00
parent ce8053a3f6
commit 69535aa3f4
3 changed files with 11 additions and 9 deletions
+5 -4
View File
@@ -20,6 +20,7 @@ import AwtisBiyografi from './awtis-biyografi'
const PREFIX = 'awtis-kat'
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3001'
const IMAGE_URL = process.env.NEXT_PUBLIC_API_URL_ROOT || 'http://localhost:1337'
const EXCLUSIVE_LABEL = process.env.NEXT_PUBLIC_EXCLUSIVE_ARTIST_LABEL || 'OKI Exclusif'
const classes = {
root: `${PREFIX}-root`,
@@ -57,16 +58,16 @@ export default function AwtisKat({artiste}) {
const router = useRouter()
const [esByografiOuve, meteEsByografiOuve] = useState(false)
const {alias, biographie, paroles, photo, slug, isOKIAwtis} = artiste
const {alias, biographie, paroles, photo, slug, isExclusiveArtist} = artiste
return (
<Grid size={{xs: 12, sm: 6, md: 4}}>
<Kat>
<Card sx={{maxWidth: 340, position: 'relative', ...(isOKIAwtis && {outline: '2px solid #FFD700'})}}>
{isOKIAwtis && (
<Card sx={{maxWidth: 340, position: 'relative', ...(isExclusiveArtist && {outline: '2px solid #FFD700'})}}>
{isExclusiveArtist && (
<Chip
icon={<VerifiedIcon sx={{fontSize: 14}} />}
label='OKI Exclusif'
label={EXCLUSIVE_LABEL}
size='small'
sx={{
position: 'absolute', top: 8, left: 8, zIndex: 1,