refactor: rename isOKIAwtis to isExclusiveArtist
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user