mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-04-28 08:10:36 +00:00
chore: migrate Button to @revoltchat/ui (#617)
* chore: start moving Button over * fix: convert ServerIdentityModal * fix: modal button styling * fix: popover styles * fix: clean up references to ui/*.* * fix: button sizing Co-authored-by: Ed L <beartechtalks@gmail.com>
This commit is contained in:
@@ -135,8 +135,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
actions={[
|
||||
{
|
||||
confirmation: true,
|
||||
contrast: true,
|
||||
error: true,
|
||||
palette: "error",
|
||||
children: (
|
||||
<Text
|
||||
id={`app.special.modals.actions.${event[1]}`}
|
||||
@@ -201,8 +200,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
actions={[
|
||||
{
|
||||
confirmation: true,
|
||||
contrast: true,
|
||||
error: true,
|
||||
palette: "error",
|
||||
children: (
|
||||
<Text id="app.special.modals.actions.delete" />
|
||||
),
|
||||
@@ -223,7 +221,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
<Text id="app.special.modals.actions.cancel" />
|
||||
),
|
||||
onClick: onClose,
|
||||
plain: true,
|
||||
palette: "plain",
|
||||
},
|
||||
]}
|
||||
content={
|
||||
@@ -304,8 +302,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
children: (
|
||||
<Text id="app.special.modals.actions.kick" />
|
||||
),
|
||||
contrast: true,
|
||||
error: true,
|
||||
palette: "error",
|
||||
confirmation: true,
|
||||
onClick: async () => {
|
||||
setProcessing(true);
|
||||
@@ -358,8 +355,8 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
children: (
|
||||
<Text id="app.special.modals.actions.ban" />
|
||||
),
|
||||
contrast: true,
|
||||
error: true,
|
||||
palette: "error",
|
||||
|
||||
confirmation: true,
|
||||
onClick: async () => {
|
||||
setProcessing(true);
|
||||
@@ -417,7 +414,8 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
actions={[
|
||||
{
|
||||
confirmation: true,
|
||||
contrast: true,
|
||||
palette: "secondary",
|
||||
|
||||
children: (
|
||||
<Text id="app.special.modals.actions.create" />
|
||||
),
|
||||
@@ -492,7 +490,7 @@ export const SpecialPromptModal = observer((props: SpecialProps) => {
|
||||
actions={[
|
||||
{
|
||||
confirmation: true,
|
||||
contrast: true,
|
||||
palette: "secondary",
|
||||
children: (
|
||||
<Text id="app.special.modals.actions.create" />
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user