Rewrite logo.tsx
as FC (#24909)
This commit is contained in:
parent
6f8db56a01
commit
2d5e257938
2 changed files with 4 additions and 6 deletions
13
app/javascript/mastodon/components/logo.tsx
Normal file
13
app/javascript/mastodon/components/logo.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import React from 'react';
|
||||
import logo from 'mastodon/../images/logo.svg';
|
||||
|
||||
export const WordmarkLogo: React.FC = () => (
|
||||
<svg viewBox='0 0 261 66' className='logo logo--wordmark' role='img'>
|
||||
<title>Mastodon</title>
|
||||
<use xlinkHref='#logo-symbol-wordmark' />
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const SymbolLogo: React.FC = () => (
|
||||
<img src={logo} alt='Mastodon' className='logo logo--icon' />
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue