Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx
This commit is contained in:
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
interface SvgTextLogoProps {
|
||||
text: string;
|
||||
className?: string;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
|
||||
dominantBaseline?: 'auto' | 'text-before-edge' | 'middle' | 'central' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit' | 'use-script' | 'no-change' | 'reset-size';
|
||||
}
|
||||
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
@@ -30,7 +30,7 @@ const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
dominantBaseline={dominantBaseline === 'text-before-edge' ? 'middle' : dominantBaseline}
|
||||
dominantBaseline={dominantBaseline === 'baseline' ? 'middle' : dominantBaseline}
|
||||
textAnchor="middle"
|
||||
className="logo-text inherit"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user