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:
Paul Makles
2022-05-23 21:21:29 +01:00
committed by GitHub
parent 6fdd701b38
commit be12c6da20
34 changed files with 156 additions and 361 deletions

View File

@@ -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" />
),