JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

const promotionBonus = {
  'bOCampaignID': 'CAMPAIGN-8df94762-661a-4c13-8a57-19799135f3f0',
  'bOCampaignID2': 'CAMPAIGN-0be13893-a7ad-41e9-b4e1-33b82b5af4ac',
  'delasportCampaignID': '4041'
}
const campaigns = [
{
    'uuid': 'CAMPAIGN-01f5d6ca-0c25-4daa-aca5-484f3b4bb8f8",
    'name': 'bonus For All players',
    'state': 'ACTIVE',
    'brandId': 'mexico',
    'startDate': '2021-07-10T08:42:00",
    'endDate': '2021-07-11T20:00:00",
    'campaignReloadDate': null,
    'playerStatus': 'VIEW',
    'targetType': 'ALL',
    'optIn': true,
    'optInDate': null,
    'optInEndDate': '2021-07-24T10:26:18',
    'fulfillmentStartDate': null,
    'fulfillmentEndDate': '2021-07-24T10:26:18",
    'parentCampaignUUID': 'CAMPAIGN-a2e2182a-dcfe-4628-9c08-aa8abb98a760",
    'levels': [{
      'level': 1,
      'fulfillments': [
        'DEPOSIT-FULFILLMENT-f090837f-ca6a-434c-b116-2f7d246f22f7"
      ],
      'rewards': [{
        'uuid': 'BONUS-TPL-6f432ae1-c2e9-4c48-be18-d8b05ff1cab0',
        'type': 'ALL'
      }],
      'config': {
        'strategy': 'FULFILLMENT',
        'autoOptIn': true
      }
    }],
    'rewardTemplateUUID': null,
    'currentLevel': 1,
    'type': 'PlayerCampaignPlayerView'
  },
  {
    'uuid': 'CAMPAIGN-8df94762-661a-4c13-8a57-19799135f3f0',
    'name': 'KetiTest_1.1.1',
    'state': 'ACTIVE',
    'brandId': 'mexico',
    'startDate': '2021-07-09T18:53:00',
    'endDate': '2021-07-30T21:00:00',
    'campaignReloadDate': null,
    'playerStatus': 'VIEW',
    'targetType': 'ALL',
    'optIn': true,
    'optInDate': null,
    'optInEndDate': '2021-07-24T10:26:18",
    'fulfillmentStartDate': null,
    'fulfillmentEndDate': '2021-07-24T10:26:18',
    'parentCampaignUUID': 'CAMPAIGN-05ad5435-050d-450f-97b9-d352a59b3d3a',
    'levels': [{
      'level': 1,
      'fulfillments': [],
      'rewards': [{
          'uuid': 'DELASPORT-REWARD-TPL-239c638e-e484-496e-875c-75dc1d19b78b',
          'type': 'ALL'
        },
        {
          'uuid':...