refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -2,17 +2,26 @@
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use App\User;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class AccountStatus extends Component
|
||||
{
|
||||
public bool
|
||||
$isVerified,
|
||||
$isSuspended,
|
||||
$isLocked,
|
||||
$has2FA,
|
||||
$hasDiscord,
|
||||
$isVerified;
|
||||
|
||||
public bool
|
||||
$isSuspended;
|
||||
|
||||
public bool
|
||||
$isLocked;
|
||||
|
||||
public bool
|
||||
$has2FA;
|
||||
|
||||
public bool
|
||||
$hasDiscord;
|
||||
|
||||
public bool
|
||||
$hasPassword;
|
||||
|
||||
/**
|
||||
|
@@ -25,19 +25,21 @@ use Illuminate\View\Component;
|
||||
|
||||
class Alert extends Component
|
||||
{
|
||||
public
|
||||
$alertType,
|
||||
$extraStyling,
|
||||
$title,
|
||||
$icon;
|
||||
public $alertType;
|
||||
|
||||
public $extraStyling;
|
||||
|
||||
public $title;
|
||||
|
||||
public $icon;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @param string $alertType The color the alert should have.
|
||||
* @param string $title The alert's title
|
||||
* @param string $icon The alert's icon, placed before the title
|
||||
* @param string $extraStyling Any extra CSS classes to add
|
||||
* @param string $alertType The color the alert should have.
|
||||
* @param string $title The alert's title
|
||||
* @param string $icon The alert's icon, placed before the title
|
||||
* @param string $extraStyling Any extra CSS classes to add
|
||||
*/
|
||||
public function __construct(string $alertType, string $title = '', string $icon = '', string $extraStyling = '')
|
||||
{
|
||||
|
@@ -7,13 +7,27 @@ use Illuminate\View\Component;
|
||||
class Button extends Component
|
||||
{
|
||||
public string
|
||||
$type,
|
||||
$icon,
|
||||
$link,
|
||||
$target,
|
||||
$size,
|
||||
$color,
|
||||
$disabled,
|
||||
$type;
|
||||
|
||||
public string
|
||||
$icon;
|
||||
|
||||
public string
|
||||
$link;
|
||||
|
||||
public string
|
||||
$target;
|
||||
|
||||
public string
|
||||
$size;
|
||||
|
||||
public string
|
||||
$color;
|
||||
|
||||
public string
|
||||
$disabled;
|
||||
|
||||
public string
|
||||
$id;
|
||||
|
||||
public function __construct($id, $color, $type = 'button', $disabled = false, $size = '', $target = '', $link = '', $icon = '')
|
||||
|
Reference in New Issue
Block a user